SSH connection with specific port
$ ssh -p [port] [user]@[host]
- Command
- ssh
- Description
- Connect to an SSH server running on a non-standard port. Usage: ssh -p 2222 user@host
- Deep Dive
- Note: ssh uses lowercase -p, while scp uses uppercase -P.
$ ssh -p [port] [user]@[host]