Copy file via SCP ssh
Recursive copy on non-standard port
scp -r -P 2222 ./dist/ user@host:/var/www/app/
more ssh
all 15 commands →
Agent forwarding
ssh -A user@bastion
Add key to agent
eval $(ssh-agent) && ssh-add ~/.ssh/id_ed25519
SSH config file host entry
cat >> ~/.ssh/config <<'EOF'
Host dev
HostName 10.0.0.5
User ubuntu
IdentityFile ~/.ssh/dev_key
ProxyJump bastion
EOF
Escape sequences in session
~.
Check SSH server host key
ssh-keyscan -t ed25519,rsa host 2>/dev/null | ssh-keygen -lf -