Last active
November 14, 2016 10:46
-
-
Save N1v0k/7b38fbee44838e013e359511b45f7e2d to your computer and use it in GitHub Desktop.
Setup SSH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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