Skip to content

Instantly share code, notes, and snippets.

@ttristan
Last active March 23, 2018 08:20
Show Gist options
  • Save ttristan/ea49f7b285de5c26acf7eec6f2daa5d0 to your computer and use it in GitHub Desktop.
Save ttristan/ea49f7b285de5c26acf7eec6f2daa5d0 to your computer and use it in GitHub Desktop.
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