ssh troubleshootings

Create a key pair for ssh RSA 4096 bits ssh-keygen -b 4096 ECDSA ssh-keygen -t ecdsa -b 521 ssh-keygen -t ed25519 Key format Note that the commands above issue OpenSSH Format (starts with -----BEGIN OPENSSH PRIVATE KEY-----). Some SSH client can’t read this format, and in that case, append -m PEM option. ssh-keygen -t rsa -b 4096 -m PEM Create only a RSA private key and out the public key openssl genpkey -algorithm RSA -out .

SSH snippets

Local Port forwarding ssh -L SSH portforwarding in backgraound ssh -fNT -L 8888:localhost:8888 official mannual -f: Requests ssh to go to background just before command execution. -N: Do not execute a remote command. This is useful for just forwarding ports (protocol version 2 only). -T: Disable pseudo-tty allocation. Config file Host User git Port 22 Hostname IdentityFile ~/.ssh/id_ecdsa TCPKeepAlive yes IdentitiesOnly yes Host myserver*.com User atlex00 Host gcp User atlex00 Hostname 192.