Ubuntu 10.10 & Open Ports

I need to open the SSH port on an Ubuntu 10.10 (Maverick) machine.  How do i do this?
deklinmAsked:
Who is Participating?
 
WebF00LCommented:
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
 
deklinmAuthor Commented:
SSH is already installed.  I need to open the port to allow the traffic for it.
0
 
legolasthehansyCommented:
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
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
deklinmAuthor Commented:
sudo: ufw: command not found
0
 
legolasthehansyCommented:
Try "apt-get install gufw" to install the application using apt-get
0
 
deklinmAuthor Commented:
if gufw isnt installed then can't I just edit a port config file?
0
 
legolasthehansyCommented:
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
 
deklinmAuthor Commented:
# 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
 
legolasthehansyCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.