Specify a custom SSH port.
Section: Basics
Connect on a non-default port
bash
bash
ssh -p 2222 user@example.comExplanation
Specify a custom SSH port.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Basics