Ubuntu – Can not resolve aliases for ssh


Here is my problem:

  • I got two machines in the same network

my /etc/hosts :  toto  tata

if I type : ssh toto:

root@toto's password:
Permission denied (publickey,password).`

but If I type ssh toto@ it works..

What is the problem?

Best Answer

You must specify the remote user, otherwise it will use the user that you are logged into locally.

For example:

ssh username@host

So, in your case you would use:

ssh toto@toto
Related Question