SSH and Telnet Connection refused

MohammedSimba

If I am trying to ssh or telnet to an Ubuntu Server, and both connections are rejected or refused!

I can ping the server, firewall off.

What are troubleshooting steps should I take?

(I am far away from the Server, so console solution isn't available).

waltinator

You can determine if programs on the server are listening to the ssh and telnet ports (22 and 23, usually), by:

nmap -T4 -A -v -PE -PS22,23 -PA22,23 <ServerIP>  

or,

telnet <ServerIP> 22  
telnet <ServerIP> 23  

If your error message is: telnet: Unable to connect to remote host: Connection refused the problem is on the remote server (no program is listening to that port). It's not running the telnet or ssh daemon,or running them on non-standard ports

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related