Why I have both in home directory? Is this just different versiosn and one can be deletec?

When I generate SSH public/private key with program ssh-keygen, which is used?

link|improve this question
What OS?? What version of SSH are you running? – Zoredache Feb 1 at 8:50
@Zoredache: Ubuntu 11.04 and its default SSH – zaharpopov Feb 1 at 12:07
@Zoredache: how I know ssh version? ssh -v say OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010 – zaharpopov Feb 1 at 12:49
That is the version. Not sure why you would have a .ssh2 folder. OpenSSH by default will only use .ssh. – Zoredache Feb 1 at 17:35
feedback

1 Answer

There were two major versions of the SSH protocols: Version 1 and Version 2. Generally, the later versions of the software support both versions of the protocol (though I believe it is best practice to disable SSH version 1 support in the SSH daemon/sevice configuration).

The current version of the ssh-keygen program from OpenSSH typically generates keys (for SSH protocol 1 or 2) in a folder named .ssh

Some commercial SSH programs and apparently some earlier versions of openssh might use a .ssh2 folder.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.