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?
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.
sshd2_config
manual page online which lists more options that are not documented for sshd_config
of OpenSSH. What is with that? For instance AllowTcpForwardingForUsers
.
Match
blocks in the configuration. You can Match
on users and groups, and enclose the AllowTcpForwarding
within to do the same thing.
Check whether .ssh and .ssh2 are really directories and not files. Just checked the other day and the same entries in my system happened to be files that too malicious ones which were generating huge outbound traffic.
ssh -v
sayOpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
.ssh2
folder. OpenSSH by default will only use.ssh
.