Quote:
Originally Posted by theFreethinker
Have you tried 'ssh -v'? What's the error message you get?
You can check with 'lsof -i' is sshd (or something else) listening on port 22. The output should be like
Code:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sshd 1048 root 3u IPv4 8695 0t0 TCP *:ssh (LISTEN)
|
Please find below details.....!
root@bt:~# lsof -i
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
postgres 759 postgres 3u IPv6 8246 0t0 TCP localhost
ostgresql (LISTEN)
postgres 759 postgres 6u IPv4 8247 0t0 TCP localhost
ostgresql (LISTEN)
postgres 759 postgres 8u IPv6 8256 0t0 UDP localhost:34257->localhost:34257
postgres 764 postgres 8u IPv6 8256 0t0 UDP localhost:34257->localhost:34257
postgres 765 postgres 8u IPv6 8256 0t0 UDP localhost:34257->localhost:34257
postgres 766 postgres 8u IPv6 8256 0t0 UDP localhost:34257->localhost:34257
postgres 767 postgres 8u IPv6 8256 0t0 UDP localhost:34257->localhost:34257
postgres. 861 postgres 3u IPv6 8469 0t0 TCP localhost:7337 (LISTEN)
postgres. 861 postgres 4u IPv4 8470 0t0 TCP localhost:7337 (LISTEN)
postgres. 861 postgres 6u IPv6 8476 0t0 UDP localhost:59808->localhost:59808
postgres. 870 postgres 6u IPv6 8476 0t0 UDP localhost:59808->localhost:59808
postgres. 871 postgres 6u IPv6 8476 0t0 UDP localhost:59808->localhost:59808
postgres. 872 postgres 6u IPv6 8476 0t0 UDP localhost:59808->localhost:59808
postgres. 873 postgres 6u IPv6 8476 0t0 UDP localhost:59808->localhost:59808
root@bt:~#
root@bt:~# ssh -v root@localhost
OpenSSH_5.3p1 Debian-3ubuntu6, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to localhost [::1] port 22.
debug1: connect to address ::1 port 22: Connection refused
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: connect to address 127.0.0.1 port 22: Connection refused
ssh: connect to host localhost port 22: Connection refused
root@bt:~#
No ssh is running and can not start ssh.