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).
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.
Comments