User login

Public key on a Debian server

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

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.