Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 505 Bytes

add_ssh-key.md

File metadata and controls

23 lines (21 loc) · 505 Bytes

Add ssh key

# Create .ssh directory
mkdir -p ~/.ssh
# Replace `public_key_string` to your public key
echo public_key_string >> ~/.ssh/authorized_keys
chmod -R go= ~/.ssh

Disabling password authentication on the server

sudo nano /etc/ssh/sshd_config

Press ctrl+w to seach PasswordAuthentication

image

sudo systemctl restart ssh