Solved

Ubuntu 10.10 & Open Ports

Posted on 2012-04-03
9
492 Views
Last Modified: 2012-04-19
I need to open the SSH port on an Ubuntu 10.10 (Maverick) machine.  How do i do this?
0
Comment
Question by:deklinm
  • 4
  • 4
9 Comments
 
LVL 3

Accepted Solution

by:
WebF00L earned 167 total points
ID: 37802680
sudo apt-get install openssh-server

IF you have ufw active you might have to add

sudo ufw allow 22

//WebFooL Untangle.com Evangelist
0
 

Author Comment

by:deklinm
ID: 37802697
SSH is already installed.  I need to open the port to allow the traffic for it.
0
 
LVL 11

Assisted Solution

by:legolasthehansy
legolasthehansy earned 333 total points
ID: 37802745
Follow the instructions in this link if you using ufw as the firewall.

http://beginlinux.wordpress.com/2008/11/23/ubuntu-810-uncomplicated-firewall-gui/
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:deklinm
ID: 37802868
sudo: ufw: command not found
0
 
LVL 11

Expert Comment

by:legolasthehansy
ID: 37802904
Try "apt-get install gufw" to install the application using apt-get
0
 

Author Comment

by:deklinm
ID: 37802911
if gufw isnt installed then can't I just edit a port config file?
0
 
LVL 11

Assisted Solution

by:legolasthehansy
legolasthehansy earned 333 total points
ID: 37802931
gufw is a graphical utility to edit your firewall rules. It is just easier. If you prefer the command line try this, "ufw allow 22"

See if you are able to "telnet localhost 22" first to see if the service is up and running.
Next try telnet host 22 from another machine before and after running ufw allow 22

Good luck
0
 

Author Comment

by:deklinm
ID: 37802938
# ufw allow 22
-bash: ufw: command not found

I can telnet to the machine now.  The problem is the machine will only accept telnet connections from one specific IP address
0
 
LVL 11

Expert Comment

by:legolasthehansy
ID: 37802955
So.. it shouldn't be your firewall that is blocking. Have you checked /etc/ssh/sshd_config file and see if there are rules set such as (allow). Also check /etc/hosts.allow and /etc/hosts.deny files.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question