ssh keys

https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2

ssh-keygen -t rsa

cat .ssh/id_rsa.pub

then inport key for user you will connecting on remote server (ploi for example)

echo "pub key" >> ~/.ssh/authorized_keys

mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && echo "pub key" >> ~/.ssh/authorized_keys

https://www.digitalocean.com/community/questions/error-permission-denied-publickey-when-i-try-to-ssh

Sometimes happend that there is a mismatch with hosts and keys - https://superuser.com/questions/421004/how-to-fix-warning-about-ecdsa-h…