------- Original Message -------
On Thursday, November 17th, 2022 at 8:21 AM, Randy Bush <ra...@psg.com> wrote:


> > debug2: resolving "ssh.phx.nearlyfreespeech.net" port 14982
> 
> 
> and it did not resolve? if not, dns issue?
> 
> > So my ssh uses a high number port. NFS uses port 22.
> 
> 
> which is perfectly normal

bash-5.1$ ssh --help
unknown option -- -
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
           [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
           [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
           [-i identity_file] [-J [user@]host[:port]] [-L address]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
           [-w local_tun[:remote_tun]] destination [command [argument ...]]


ssh -p <port> <user>@<host>

You can add this to .ssh/config so that SSH always uses the given port for that 
host.

Reply via email to