Which option with the ssh command specifies a different port for connection?

  • -p
  • -s
  • -l
  • -r
The correct option is -p. When using the ssh command, you can specify a different port for the connection using the -p option followed by the port number (e.g., ssh -p 2222 user@hostname). This is useful when an SSH server is configured to listen on a non-default port.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *