RE: PuTTY SSH w/o a Password

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



man On Thu, 2003-11-13 at 12:08, L. Christopher Luther wrote:
> Problem Solved!  
> 
> The issue was that I scp'd the public key file generated by puttygen to the
> ~/.ssh/authorized_keys file and didn't copy-n-paste the public displayed by
> puttygen into a blank authorized_keys file.  
> 
> It appears that OpenSSH requires that public keys in the authorized_keys
> file be all in one long line vs. being wrapped the way puttygen does when
> saving public/private keys.  
> 
> So the next question is: how do you store *multiple* public keys in
> ~/.ssh/authorized_keys?  Do subsequent keys get simply appended to the
> existing, thus creating one *very* long line?  Or does each public key start
> on its own line?  
> 

yes one per line.

you can also take a look at man ssh-keygen specifically the -i option.
  -i      This option will read an unencrypted private (or public) key file
             in SSH2-compatible format and print an OpenSSH compatible private
             (or public) key to stdout.  ssh-keygen also reads the `SECSH
             Public Key File Format'.  This option allows importing keys from
             several commercial SSH implementations.

I think you can take the public key file generated by putty copy it to
the linux box and run ssh-keygen -i -f puttykeyfile.pub >>
~/.ssh/authorized_keys 

Bret



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux