View Full Version : [ubuntu] Open port

December 18th, 2008, 09:30 AM

I need to open a port in a server that I access by ssh. I already tried some commands that I saw in other treads but didn't work.

Please help!
I realy need that port open

The Cog
December 18th, 2008, 08:56 PM
You open a port by starting a server that listens on that port. To install an SSH server, use the command:

sudo aptitude install openssh-server
and the port 22 will be open to incoming connections.

If you have installed a firewall, you may also need to configure it to allow connections in to port 22. f you need help doing that, tell us which firewall you have installed. If you havn't installed a firewall, then no problem because a default Ubuntu installation doesn't firewall anything.

Beware, there are lots of password guesong bots out there. You may want to check your password strength and configure the SSH server to only accept connections from certain users and IP addresses by editing /etc/ssh/sshd_config.