Skip to content

Instantly share code, notes, and snippets.

@skarllot
Created May 15, 2012 18:58
Show Gist options
  • Save skarllot/2704201 to your computer and use it in GitHub Desktop.
Save skarllot/2704201 to your computer and use it in GitHub Desktop.
Local SSH config examples
# ~/.ssh/config
# git clone server01:repo_name
Host server01
User git
Hostname 192.168.0.1
Port 2222
PreferredAuthentications publickey
IdentityFile /media/flash8gb/ssh/id_rsa
# ssh server02
Host server02
User root
Hostname 192.168.0.2
PreferredAuthentications publickey
IdentityFile /media/flash8gb/ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment