Page 1 of 1

Opening ports

Posted: 2012/03/26 11:30:13
by esramar
Hello,

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 ( http://nmap.org ) at 2012-03-26 13:29 CEST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000010s latency).
rDNS record for 127.0.0.1: localhost.localdomain
Not shown: 993 closed ports
PORT STATE SERVICE
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!

Re: Opening ports

Posted: 2012/03/26 13:19:49
by TrevorH
That doesn't look like it's even running. Does

[code]
netstat -antup | grep "\:22"
[/code]

show anything? How about

[code]
service sshd status
[/code]

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

Opening ports

Posted: 2012/03/26 13:20:18
by gerald_clark
Welcome to CentOS.
New users need to read:
http://www.centos.org/modules/newbb/viewforum.php?forum=47

yum install openssh-server
service sshd start