Home ›
Public key on a Debian serverPublic key on a Debian server
Submitted by Benjamin Melançon on December 11, 2007 - 12:47am
http://www.debianadmin.com/ssh-your-debian-servers-without-password.html
To allow ServerA to SSH to ServerB without password, please try the following:
ssh-keygen -t rsa
Note: User here is root
This generates two files id_rsa.pub and id_rsa
Now, this needs to be copied to the authorized_keys file on ServerB
scp id_rsa.pub ServerB:~/.ssh/ServerA_rsa.pub
(If you already have passwords turned off )
cat ServerA_rsa.pub >> authorized_keys
Thats it. Test if you are able to do a ssh from ServerA without a password:
ssh serverB uname -a
This will run the command “uname -a” on ServerB and returns the result on ServerA.
Resolution
Searched words:
where to see public key for a server
where to see public key Debian
where to see .pub Debian
id_rsa.pub Debian
Comments
Post new comment