how to remote ssh using id_rsa private key Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Issue :
I always failed when autthentication using private key I always got message
Permission denied, please try again.
Permission denied, please try again.
username@194.233.123.65: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Soltion :
this message caused public key and private key is not match now this is the solution
on your client computer
type
ssh-keygen -t rsa -b 4096
this code will generate two files on directory ~/.ssh/
id_rsa and id_rsa.pub
now we will copy the public id_rsa to the server now you can type
ssh-copy-id server_user@server_ip
code above will copy content of id_rsa.pub to ~/.ssh/authorized_keys on server
and now Your can remote your server withour password
like this
username@194.233.123.65
[username@vmi828895 ~]$
hope it help sorry for bad english
Comments
Post a Comment