Here is my problem:
- I got two machines in the same network 192.168.122.0/24
my /etc/hosts :
192.168.122.100 toto
192.168.122.110 tata
if I type : ssh toto
:
root@toto's password:
Permission denied (publickey,password).`
but If I type ssh toto@192.168.122.100
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:
So, in your case you would use: