To connect via SSH to Hetzner use the following instructions:
Make sure the ~/.ssh/config
file contains a reference to Hetzner:
Host hetzner
Hostname <hostname_or_ip>
User <username>
Port 22
IdentityFile ~/.ssh/hetzner
CertificateFile ~/.ssh/hetzner.pub
# Disable password authentication for better security
PasswordAuthentication no
# Prevent TCP forwarding if not needed
AllowTcpForwarding no
# Additional security hardening
KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com
HostKeyAlgorithms ssh-ed25519,rsa-sha2-512,rsa-sha2-256
~/.ssh/config
Then all you have to do to connect is:
$ ssh hetzner