Opening ports

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

Opening ports

Post by esramar » 2012/03/26 11:30:13

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!

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Opening ports

Post by TrevorH » 2012/03/26 13:19:49

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`.

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

Opening ports

Post by gerald_clark » 2012/03/26 13:20:18

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

Post Reply