Last active
March 23, 2018 08:20
-
-
Save ttristan/ea49f7b285de5c26acf7eec6f2daa5d0 to your computer and use it in GitHub Desktop.
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
Client | |
# create public key | |
ssh-keygen | |
# copy public key | |
pbcopy < ~/.ssh/id_rsa.pub | |
Server: | |
#install openssh | |
sudo apt install openssh-server | |
# put public key of client | |
mkdir ~/.ssh | |
chmod 700 ~/.ssh | |
nano ~/.ssh/authorized_keys #public client ssh key will go here | |
chmod 600 ~/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment