Linux SSH Command Guide
Introduction
SSH (Secure Shell) is a protocol used to securely connect to remote servers and execute commands. It provides a secure channel over an unsecured network.
Usage
To connect to a remote server, use the following command:
ssh [user]@[hostname]
Common Options
-p <port>
: Specify the port to connect to.-i <identity_file>
: Use a specific private key for authentication.-v
: Enable verbose mode for debugging.
Examples
-
Connect to a remote server:
ssh [email protected]
-
Connect using a specific port:
ssh -p 2222 [email protected]
-
Connect using a specific private key:
ssh -i /path/to/private_key [email protected]
-
Enable verbose mode:
ssh -v [email protected]