I seem to be having a problem with trying to ssh into my Mac from a Linux desktop. I have two users on my Mac and can ssh between them, but other computers seem to be the problem.
I enabled remote login in System Preference > Sharing. It tells me to try "ssh firstname.lastname@example.org", but when I try that it does not work, likewise when I try using ssh -p22.
Later I generated an RSA file using ssh-keygen in the Linux desktop and added it into the Mac's authorized_keys file. Please note that I am able to ssh into the Linux desktop without any problem.And my firewall is off on the mac.
I do not even get prompted to enter the password, it just does nothing for some time and then later displays:-
ssh -p22 email@example.com ssh: connect to host 192.168.x.x port 22: Connection timed out
I know I am connected to the internet. This is the verbose output:
OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to 192.168.x.x [192.168.x.x] port 22. debug1: connect to address 192.168.x.x port 22: Connection timed out ssh: connect to host 192.168.x.x port 22: Connection timed out
Does anyone have an idea what the problem may be? What other steps can I try to resolve this?