Opening ports

Issues related to configuring your network

Opening ports

Postby 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!
esramar
 
Posts: 1
Joined: 2012/03/26 11:23:52

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`.
User avatar
TrevorH
Forum Moderator
 
Posts: 9147
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Opening ports

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

Welcome to CentOS.
New users need to read:
http://www.centos.org/modules/newbb/vie ... p?forum=47

yum install openssh-server
service sshd start
gerald_clark
 
Posts: 7180
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA


Return to CentOS 6 - Networking Support

Who is online

Users browsing this forum: No registered users and 3 guests