Connecting via SSH: ssh username@SSHserver
ssh [email protected]= Connect with root user to 64.225.108.160 server addressssh-keygen -t rsa= Create SSH Key Pair with 'rsa' algorithm. SSH Key Pair is stored to the default location ~/.sshls .ssh/= Display contents of .ssh folder, which has:
id_rsa = Private Keyid_rsa.pub = Public Keyssh -i .ssh/id_rsa [email protected] = Connect with root user to 64.225.108.160 server address with specified private key file location (.ssh/id_rsa = default, but you can specify a different one like this)Two Files used by SSH:
~/.ssh/known_hosts = lets the client authenticate the server to check that it isn't connecting to an impersonator~/.ssh/authorized_keys = lets the server authenticate the user