Skip to content

Instantly share code, notes, and snippets.

@N1v0k
Last active November 14, 2016 10:46
Show Gist options
  • Save N1v0k/7b38fbee44838e013e359511b45f7e2d to your computer and use it in GitHub Desktop.
Save N1v0k/7b38fbee44838e013e359511b45f7e2d to your computer and use it in GitHub Desktop.
Setup SSH
sudo apt install openssh-server -y
mkdir ~/.ssh
mkdir /home/gergely/.ssh
cat id_rsa.pub >> /home/gergely/.ssh/authorized_keys
sudo nano /etc/ssh/sshd_config
sudo service ssh reload
sudo service ssh restart
cp Desktop/id_rsa .ssh/id_rsa
chmod 400 ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment