Tag Archives: sshd

Linux: Connection reset when connecting to a ssh server

Hi,

you are trying to connect to a ssh server and got the error: Connection reset by 123.123.123.123 port 22

Continue reading Linux: Connection reset when connecting to a ssh server

Advertisment to support michlstechblog.info

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