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 [email protected],diffie-hellman-group16-sha512,diffie-hellman-group18-sha512
MACs [email protected],[email protected]
Ciphers [email protected],[email protected]
HostKeyAlgorithms ssh-ed25519,rsa-sha2-512,rsa-sha2-256
~/.ssh/config
Then all you have to do to connect is:
$ ssh hetzner