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

Popular posts from this blog

failure: repodata/repomd.xml from kubernetes: [Errno 256] No more mirrors to try. [Errno -1] repomd.xml signature could not be verified for kubernetes

my jenkins docker container is alway die because memory usage

How to solve React Hook useEffect has a missing dependency: func Either include it or remove the dependency array