Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 64180  / 2 Years ago, sun, may 8, 2022, 12:56:01

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


More From » server

 Answers
6

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


[#27955] Sunday, May 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
luringdge

Total Points: 3
Total Questions: 126
Total Answers: 109

Location: India
Member since Sun, Feb 6, 2022
2 Years ago
;