INFO
- SSH default port: 22
- SSH with GUI Support: -X (Untrusted Session), -Y (Trusted Session)
Generate SSH Keys
Copy SSH Keys to Remote Machine
Copy using SSH Copy and SSH Add
Copy using Pipes
INFO
- The public keys of known devices are stored in
~/.ssh/
folder in a file called “authorized_keys”- SSH Configuration Files:
~/.ssh/ssh_config
(Client Config File),~/.ssh/sshd_config
(Server Config File)- Disable PasswordAuthentication on server if it’s not disabled by default to prevent login with password
Create Alias for Remote Machines
Add the following configuration in ~/.ssh/config
IdentifyFile: Used to specify the key to use for the SSH connection
ForwardAgent: Forwards our local SSH Agent to the remote machine. This is useful if we want to use any of the locally saved Host information on remote machine
Connecting to Old Server
Supported Algorithms & Ciphers will be provided by server when we try to establish connection using the normal command