I am trying to connect to a solaris server using putty from a windows client. SSH connection is not working. The terminal window just gives an error message "Network error:Connection refused". Telnet using putty is working fine with the same server. Can someone please detail what configurations needs to be checked in this case? How to troubleshoot? (There are other servers in the same network which allows SSH connection.)
|
Here is a series of steps you can use to diagnose the problem:
|
||||
|
|
|
I know it seems a very obvious check. But have you confirmed that your Solaris server has a sshd running? Once you have telneted to the machine run netstat to see if it is listening on the ssh port (port 22). If it is then you next port of call will be to check /etc/hosts.allow and so forth as MathewC suggested |
|||
|
|
|
If you confirm ssh is running on the machine, you may want to check if the client machine you're trying to connect from can see port 22 as open using nmap. nmap -p22 [solaris-box-ip] |
|||
|
|
|
If this is Solaris 10, check if SSHD is running by issuing the You can enable SSH by issuing |
|||||
|
|
Connection refused means the service is running but you don't have access. Check /etc/hosts.allow You might need to also run inetadm -m network/telnet:default tcp_wrappers=TRUE |
|||||||
|
