I am running on Mac OS X 10.7.4.
I am unable to ssh
to a remote computer, but when I do ssh user@localhost
, it works fine.
The error displayed is
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /etc/ssh_config debug1: Applying options for * debug1: Connecting to web.iiit.ac.in [14.139.82.8] port 22. debug1: connect to address 14.139.82.8 port 22: Connection refused ssh: connect to host web.iiit.ac.in port 22: Connection refused
I have enabled the root login in System Preferences and disabled firewall.
Also, ps aux | grep ssh shows ssh-agent
, contains /usr/bin/ssh-agent -l
and grep ssh
in the output.
On doing sudo launchctl list|grep ssh
it shows:
After this, sudo launchctl start com.openssh.sshd ; sudo launchctl list|grep ssh gives 45973 - com.openssh.sshd
Again, after checking sudo launchctl list|grep ssh after sometime, it again shows : - 0 com.openssh.sshd
Credentials are Wrong. Typos or incorrect credentials are common reasons for a refused SSH connection. Make sure you are not mistyping the username or password. Then, check whether you are using the correct IP address of the server.
In system preferences -> sharing->enable remote login. It will fix it.
Wireless connections has well know problems with the SSH strict package receiving algorithm. I have the same problem with a WiMax connection. It would turn good if you can establish a VPN or any kind of tunnel to the server.
see also
this thread
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With