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.
Loading...
Related Quiz
- Which command-line tool is used to view real-time system processes in Linux?
- To compare two numbers in Bash and check if they're equal, you'd use the ________ operator within a conditional statement.
- Which virtualization solution is directly supported in the Linux kernel?
- When setting up SSH for the first time, the server-side cryptographic keys are stored in the /etc/ssh/________ directory.
- Which SSH configuration parameter specifies the maximum number of authentication attempts allowed per connection?