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 user@example.com -
Connect using a specific port:
ssh -p 2222 user@example.com -
Connect using a specific private key:
ssh -i /path/to/private_key user@example.com -
Enable verbose mode:
ssh -v user@example.com