I need to set up secure connection through ssh keys, prerequisites are :
- DSA type
- 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 .ssh directory of my user. That doesn't work...
Private key looks like this :
PuTTY-User-Key-File-2: ssh-dss Encryption: aes256-cbc Comment: dsa-key-20150127 Public-Lines: 17 xxxxxxxxxxxxx Private-Lines: 1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Private-MAC: xxxxxxxxxxxxxxxxxxxxx
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