SSH
Common Flags
- -l Used to specify username
- -i filename Used to specify private key used for authenticating
- -F filename Used for specifying which config file is used, default is: ~/.ssh/config
ssh example ssh username@hostname
Keys
- Private key: On user device
- Public key: On server
You can use key pairs to avoid typing a password in every time. The utilities to create this are:
ssh-keygen: Generates the keys ssh-copy-id: Sends the public key to the server
X11 Forwarding
Allows you to tunnel GUI programs over ssh
ssh -x user@hostname
Previous SSH commands
rcp > scp ftp > sftp