# ssh setup # The host you can ssh TO (your destinaton) is the 'server' # The permissions need to be correct on ~/ ~/.ssh and ~/.ssh/authorized_keys # Permissions for ssh files: chmod go -w ~/ chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys # The ssh key needs to be created on the client (your local machine, your home directory, etc). # The "key" part remains on the client. # The "public" part needs to be copied into ~/.ssh/authorized_keys on the server # When generating keys, the key type you create depends on the command # you use to generate the key: # -t option is "type" of key: rsa, dsa, ecdsa ssh-keygen -t ecdsa cd /home//.ssh ssh-keygen -t ecdsa cat id_ecdsa.pub >> authorized_keys chmod 600 authorized_keys cp id_ecdsa.pub ecdsa_tx_pub scp ecdsa_tx_pub @remoteserver.com:/home/username/.ssh/ ssh @remoteserver.com cd .ssh cat ecdsa_tx_pub >>authorized_keys chmod 600 authorized_keys rm ecdsa_tx_pub exit ssh @remoteserver.com