How to connect to a non standard SSH port in the Mac terminal

English: Redirect local port by remote host to...
Image via Wikipedia

BobHarris has the solution.

ssh -p 12345 remoteUsername@address.of.remote.system

You can also create a .ssh/config file and add the following:

# .ssh/config Host shortCutName HostName address.of.remote.system User remoteUsername Port 12345 

The options you can add to the .ssh/config file are listed in “man ssh” under the -o option

via Apple – Support – Discussions – SSH in Terminal ….

Share

Post a comment