31
loading...
This website collects cookies to deliver better user experience
ls -ll ~/.ssh
Id_rsa.pub
id_ecdsa.pub
id_ed25519.pub
ssh-keygen -t ed25519 -C "put_your_email_address_here"
Enter a file in which to save the key
. Press the Enter Key
on your keyboard to use the default file location or enter a custom file name.Enter key
twice.eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cat
command to print out its content and then copy the output from the terminal:
cat ~/.ssh/id_ed25519.pub
cd
into your SSH directory:
cd ~/.ssh
authorized_keys
file
echo “put_your_public_ssh_key_here” >> authorized_keys
sudo systemctl restart ssh
ssh public_ip_of_your_remote_computer