Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On terminal, I type

ssh root@ipadress

How do I ssh into something if it is not the default port 22, in my case it is 222

share|improve this question

You can use the -p option to choose a different port. So:

ssh -p 222 root@ipaddress

You can also look up help using the man (manual) command, like man ssh, to show help information, including usage, command line options, errors, etc. While in the man page, you can type / (the slash character) followed by any text (and Enter) to search for that within the manual.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.