ssh
ssh
sshd server
Set alternate port so the lazier script kiddies will pass you by
Determining ssh key metadata
ssh-keygen -l -f ~/.ssh/<file>1024 SHA256:<my key> <username>@<hostname> (RSA)ssh key forwarding
Start the ssh-agent that will forward keys for you
SSH_AUTH_SOCK=/var/folders/zv/1s20m9ld4q3f9vbc8_p_tqsr0000gr/T//ssh-Q7NiRJVvk5X4/agent.7403; export SSH_AUTH_SOCK;
SSH_AGENT_PID=7404; export SSH_AGENT_PID;
echo Agent pid 7404;Add any keys you want into the agent
ssh client
Config file
custom port
public key authentication
custom port + public key authentication
Last updated