I launch my command from cmd:

putty -load -i C:\Users\Administrador\Desktop\id_rsa.ppk"


total 12

-rwx------ 1 root root  400 sep 13 14:00 authorized_keys
-rwx------ 1 root root 1766 sep 13 13:38 id_rsa
-rwx------ 1 root root  394 sep 13 13:38 id_rsa.pub

enter image description here

how can i do it so that i can enter alone and not enter the password ?

  • been a while since I looked into it and I may be wrong, but aren't you meant to enter with a public key not a private key? So the private key isn't transferred, it stays private.. And the ssh server recognizes your public key (though what if somebody else has your publci key, so there is more to it).. but I thnk you enter with a public key – barlop Sep 13 at 13:42

Are you logging into a linux box? You have to add server A's RSA key into server B's configuration. Afterwards when you relog it should let you log in without a password.

Either that, or when you generated the SSH key initially, you have put a passphrase on it, in which case you should generate a new one without a passphrase and re-upload it to the server where you want to login. (normally under ~/.ssh directory)


You are on the right track, but may be missing some elements. The first thing I would check is that your ssh server config is allowing root logins. The second is if the problem is related to selinux and labelling of the keys.


I got it by configuring the sshd_config so:

PermitRootLogin yes

AuthorizedKeysFile      .ssh/authorized_keys

PasswordAuthentication no

ChallengeResponseAuthentication no

UsePAM no

X11Forwarding yes
PrintMotd no

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.