SSH (OpenSSH) 10 · Connecting

Connect on another port with a specific key

Use a non-default port and an identity file.

ssh -p 2222 -i ~/.ssh/id_ed25519 [email protected]

Official SSH (OpenSSH) 10 documentation

More connecting commands

All connecting commands · SSH (OpenSSH) 10 cheatsheet

Was this page helpful?