SSH Command Examples
Secure shell (ssh) is cryptographic network protocol used for an encrypted connections between a client and a server.
SSH syntax
The most used ssh command
The first time you connect to the server, you'll see something like
This is an onetime question. Answer (yes) to add the key to your know hosts file then you will see something like
SSH Examples
User name can be specified with the -l option
The default port for ssh is 22, to connect to a different port
For connections issues pass the -v option to print debugging
Config File
The config file is very useful when you connect to a bunch of server, create the file in ~/.ssh/config
To connect to a host
Port Forwarding
To create a local port pass the -L option
Example
No password
----------
----------
© DarknessCode