Hi all,
I was connected to a mail server via PuTTY and all of a sudden the connecttion dropped and I've tried everything and no luck. My SSH is not the default port 22. Here are the commands I ran,
Code:
# ssh -l root mailservername -p [my ssh port number]
ssh: connect to host mailservername port [my ssh port number]: No route to host
# ssh -l root IPnumber -p [my ssh port number]
ssh: connect to host IPnumber port [my ssh port number]: No route to host
Ping works just fine
ssh localhost works just fine
Code:
#ps aux | grep ssh
root 6583 0.0 0.1 69452 15740 tty1 S+ 14:05 0:00 ssh root@localhost –p [my ssh port number]
root 6584 0.0 0.0 88996 3492 ? Ss 14:05 0:00 sshd: root@pts.0
root 17285 0.0 0.0 61664 1188 ? Ss 14:26 0:00 /user/sbin/sshd
root 29790 0.0 0.0 61208 772 pts/0 S+ 14:49 0:00 grep ssh
Restarted iptables didn’t help either. SELinux is already in Permissive mode:
Code:
#getenforce
Permissive
Installed NMAP and scanned the ports and didn't see the SSH:
Code:
#nmap
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2012-01-25
Interesting ports on localhost.localdomain (127.0.0.1)
Not shown: 1669 closed ports
PORT STATE SERVICE
[number]/tcp open smtp
[number]/tcp open http
[number]/tcp open pop3
[number]/tcp open netbios-ssn
[number]/tcp open imap
[number]/tcp open https
[number]/tcp Microsoft-ds
[number]/tcp open smtps
[number]/tcp open ipp
[number]/tcp open imaps
[number]/tcp open pop3s
traceroute from a client to this mail server returns:
Code:
# traceroute [mailservername]
traceroute to mailservername (mail server IP), 30 hops max, 60 byte packets
1 mailserver.domain.com (mail server IP) 8.850 ms !X 8.841 ms !X 8.832 ms !X
And from the mailserver to a client gave me a long output with some *** at the end. I was at the console and took pictures of the output but since that output was long couldn't capture it.
The mail server is up and running but SSH to that box just doesn't work.
would someone please help me fix this issue? I'd really appreciate it.
Thank you,
t