ssh-keygen -t rsa -C "email@example.com". Add email/info to act as a label.
Add public key (
eval "$(ssh-agent -s)"
~Not writeable by others (probably
Host * Port 22 IdentityFile ~/.ssh/id_rsa ServerAliveInterval 120 TCPKeepAlive no # Keep this here, it's (potentially) important # https://serverfault.com/a/869394 # XAuthLocation /opt/X11/bin/xauth # Host with X11 forwarding Host foo HostName foo.bar User foobar ForwardX11 yes # Might also be needed # ForwardX11Trusted yes # Host with no X11 forwarding Host foo-nox HostName foo.bar User foobar