I have been using this since last 5 month but today I have updated .ssh/authorised_keys
(change my directory) and also was working fine. But when giving access to another machine (by update .ssh/authorised_keys
(friend machine key )) then it is not working and now I am also unable to log in.
$ ssh -i "dev.pem" [email protected]
[email protected]: Permission denied (publickey).
Can anyone give me a solution?
-i
directive unless you are in the same directory as the private key file..ssh/authorized_keys
not.ssh/authorised_keys
(the British spelling is not the proper spelling unfortunately, to my knowledge)