Opening ports

Issues related to configuring your network
Posts: 1
Joined: 2012/03/26 11:23:52

Opening ports

Postby esramar » 2012/03/26 11:30:13


first of all i apologize if there is a post with this infornation, i have been reading and didn't find it :)

my problem is this:

i need to connect by ssh to my centos 6.2. I read a lot of information that i found in google. I tried with iptable command and finally my firewall is disable and i don't know how to open port 22:

Starting Nmap 5.21 ( ) at 2012-03-26 13:29 CEST
Nmap scan report for localhost (
Host is up (0.000010s latency).
rDNS record for localhost.localdomain
Not shown: 993 closed ports
25/tcp open smtp
111/tcp open rpcbind
512/tcp open exec
513/tcp open login
514/tcp open shell
631/tcp open ipp
873/tcp open rsync

Nmap done: 1 IP address (1 host up) scanned in 0.26 seconds

Any tips? Thank you!

User avatar
Forum Moderator
Posts: 20332
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Opening ports

Postby TrevorH » 2012/03/26 13:19:49

That doesn't look like it's even running. Does

Code: Select all

netstat -antup | grep "\:22"

show anything? How about

Code: Select all

service sshd status

and if that says it isn't running, start it with `service sshd start`.

Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Opening ports

Postby gerald_clark » 2012/03/26 13:20:18

Welcome to CentOS.
New users need to read: ... p?forum=47

yum install openssh-server
service sshd start