Hi--
Does anyone here know the correct syntax in Terminal
to specify a different port than 22?
<pre class="command">ssh -p 1234 username@domain.com</pre>assuming you're just doing a straight login to a command-line, has always worked for me.
By the way, if you're new to the Terminal, most of the commands you'll run in the Terminal have really good
man pages. Just type:
<pre class="command">man ssh</pre>to see it.
If you know what you're looking for, it's right there in the last line of the synopsis:
<pre class="command">SYNOPSIS
ssh [-1246AaCfgkNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D port]
[-e escape_char] [-F configfile] [-i identity_file]
[-L port:host:hostport] [-l login_name] [-m mac_spec] [-o option]
[-p port] [-R port:host:hostport] [user@]hostname [command]
</pre>If you're not sure what you're looking for, you can often find it a bit lower down. Unfortunately, in the case of
ssh, it has a long
man page, so you have to go quite a bit further down to find it:
<pre class="command"> -p port
Port to connect to on the remote host. This can be specified on
a per-host basis in the configuration file.</pre>
Have fun,
charlie