Close

Ssh-keygen rsa 2048 bits

 

Ssh-keygen rsa 2048 bits

I need to set up secure connection through ssh keys, prerequisites are. number of bits. 2048. Passphrase. yes. On my Linux I can't create this kind of key, the man says. DSA keys must be exactly 1024 bits as specified by FIPS 186-2. But I found that in Putty, we can create DSA 2048 bits keys. So I tried to put my pair of keys generated by Putty in the directory of my user. That doesn't work. Private key looks like this. I think authentication can't work with this key. My questions are. Do I need to format the layout of this key to be usable on my CentOS. Is-it possible. If not, is there any other way to create a pair of 2048 bits DSA keys with passphrase. Thanks for your help and sorry for my bad english. Given OpenSSH (even as current as version 6.7), you will not be able to create a 2048 bit DSA key using the ssh-keygen tool. However, you should be able to create a 2048-bit DSA key with puttygen. After you've generated your key, copy the text that appears in the text box with the heading "Public key for pasting into OpenSSH authorized_keys file:" and paste that into in your user's home directory on your server. To connect using the key, you will need to have pageant running on your client, with your key loaded. Also, pay attention to the file permissions on the. directory and the authorized_keys file. If they are writable by others, sshd will not use the authorized_keys file, unless the StrictModes option has been set to no. (I can confirm this works with CentOS 6.6 and putty 0.63. Update: To export the private key to OpenSSH format, use puttygen. Click "Conversions" and then click "Export OpenSSH Key". The file it creates is correctly formated for OpenSSH. Place that file (your secret key) on the client system and pay attention to the permissions. You may then use ssh -i [name of key file] to connect to your server. answered Feb 3 '15 at 22:11.

PREVIOUS   NEXT