SSH
ssh -i (private key file) username@ip
ssh -v = verbose mode
Generate SSH keys and upload
Step 1: create ssh keys on host terminal, then SCP the public key to the remote machine (the key is uploadedkeys.pub just for identi fication purposes, otherwise give a more discreet name)
Step 2: on the remote system, append the keys to the authorised keys file in the .ssh directory and change the permissions are showing below:
cat ~/.ssh/uploadskeys.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/*
Step 3: Log in