0

For over 5 hours now I've been having trouble logging into my Linux account remotely. I've used the ssh client, Putty, as well as my MAC terminal. I understand that in order to login, we must use ssh username@hostname or IP address. In my case, it is ssh [email protected] but in the end, I constantly receive the message ssh: connect to host 10.0.2.15 port 22: Operation timed out Can someone please help me? I've even tried to disable sshd but that didn't work either.

3
  • 1
    A timeout on connection often indicates that a firewall is preventing access. When the port is allowed in the firewall but there is no service behind it, you get a "connection refused". You can still try to enable verbosity/debug in the ssh client with ssh -vv [email protected]. This may give more information.
    – xenoid
    Jun 2, 2019 at 18:56
  • you could also check the host is up (it's possibly down) and ports open with nmap -PN 10.0.2.15
    – bistoco
    Jun 2, 2019 at 19:18
  • So far opening the ports haven't worked with nmap -PN 10.0.2.15, so I will try to enable versoity/debug.
    – Easter31
    Jun 4, 2019 at 11:24

1 Answer 1

-1

Get on the command line as root Then cd to /etc/ssh and do the following

cd /etc/ssh
nano sshd_config       note that is an underscore in the file name    

using nano you must uncomment the line

# PermitRootLogin prohibit-password

change it to

PermitRootLogin yes

Restart SSH

service ssh restart
1
  • I tired doing this and I am still unable to log in remotely.
    – Easter31
    Jun 4, 2019 at 11:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .