regarding putty... ssh..

Rahul Shelke

New Member
The key "ssh-rsa ...." looks in good format.
You need to copy it and paste it in ----------------.org (ssh section / Add public ssh key).

However when copying it, you must be sure that it has no carriage return. You can check in an editor if you paste it that is fits a single line and not multiple lines



Please help to understand the meaning of mentioned instructions regarding putty ...............
 

beers

Moderator
Staff member
In the text editor it's just telling you that the ssh-rsa public key string should be one line on the server when adding it to ~/.ssh/authorized_keys

I'd also make sure your permissions are something like 700 for .ssh and 600 for authorized_keys
 

Cromewell

Administrator
Staff member
Your key will look something like
Code:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyVGaw1PuEl98f4/7Kq3O9ZIvDw2OFOSXAFVqilSFNkHlefm1iMtPeqsIBp2t9cbGUf55xNDULz/bD/4BCV43yZ5lh0cUYuXALg9NI29ui7PEGReXjSpNwUD6ceN/78YOK41KAcecq+SS0bJ4b4amKZIJG3JWmDKljtv1dmSBCrTmEAQaOorxqGGBYmZS7NQumRe4lav5r6wOs8OACMANE1ejkeZsGFzJFNqvr5DuHdDL5FAudW23me3BDmrM9ifUzzjl1Jwku3bnRaCcjaxH8oTumt1a00mWci/1qUlaVFft085yvVq7KZbF2OPPbl+erDW91+EZ2FgEi+v1/CSJ5 your_username@hostname
If there are newlines or carriage returns in it (ie. the enter key) it won't work. ie.

Code:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyVGaw1PuEl98f4/7Kq3O9ZIvDw2OFOSXAFVqilSFNkHl
efm1iMtPeqsIBp2t9cbGUf55xNDULz/bD/4BCV43yZ5lh0cUYuXALg9NI29ui7PEGReXjSpNwUD6ceN/78YOK41
KAcecq+SS0bJ4b4amKZIJG3JWmDKljtv1dmSBCrTmEAQaOorxqGGBYmZS7NQumRe4lav5r6wOs8OACMA
NE1ejkeZsGFzJFNqvr5DuHdDL5FAudW23me3BDmrM9ifUzzjl1Jwku3bnRaCcjaxH8oTumt1a00mWci/1qUlaVF
ft085yvVq7KZbF2OPPbl+erDW91+EZ2FgEi+v1/CSJ5 your_username@hostname
 

beers

Moderator
Staff member
You can verify in vi/vim line numbers when setting :set number , something like:

1 this is a single line.
2
3 this
4 is
5 multiple
6 lines
~
~
~
~
~
~
~
:set number

If you're using nano it should just be one line indicated.
 
Top