Skip to content

Instantly share code, notes, and snippets.

@simonqian
Last active August 22, 2016 01:27
Show Gist options
  • Save simonqian/d55dead621efb703e06bd00bf40d785c to your computer and use it in GitHub Desktop.
Save simonqian/d55dead621efb703e06bd00bf40d785c to your computer and use it in GitHub Desktop.
1. create config
vi ~/.ssh/config
2. add content
Host dpy
User dpy
HostName xxx.xxx.xx.xxx
3. install ssh-copy-id(in mac ox)
brew install ssh-copy-id
4. add id to remote server
ssh-copy-id -i ~/.ssh/id_rsa.pub dpy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment