Tag Archives: ssh

Linux: ssh error “too many authentification error”

Hi,

if you cannot logon to a linux machine and you got an error:

ssh - too many authentification failures
ssh – too many authentification failures

Continue reading Linux: ssh error “too many authentification error”

Linux: Use ssh agent forwarding while sudo to another user

Hi,

if you are logged on as a user1 and switch to another user2 with sudo the ssh agent from user1 cannot be used because the “switched” user2 does nothing know about the ssh-agent respectively the agent socket.
Continue reading Linux: Use ssh agent forwarding while sudo to another user

Linux: Creating a ssh keypair with ssh-keygen

Hi,

ssh-keygen can be used to generate a new ssh key pair.

Continue reading Linux: Creating a ssh keypair with ssh-keygen

Linux: Using ssh-agent

Hi,

if you do not always want to enter your private key password/passphrase when using certificate based ssh or scp connections then ssh-agent is your friend 🙂 .
Continue reading Linux: Using ssh-agent

Linux: Regenerate sshd host keys

Hi,

to generate sshd host keys, for example in case of cloning a virtual linux instance, do the following steps:

Checkout the key file names

root@debdevt:~# grep HostKey /etc/ssh/sshd_config
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key

Continue reading Linux: Regenerate sshd host keys