Solved

Ubuntu 10.10 & Open Ports

Posted on 2012-04-03
9
496 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

717 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