Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.