Skip to content

Instantly share code, notes, and snippets.

@kurotaky
Last active August 29, 2015 13:56
Show Gist options
  • Save kurotaky/9187018 to your computer and use it in GitHub Desktop.
Save kurotaky/9187018 to your computer and use it in GitHub Desktop.
ssh複数アカウント切り替え
# ~/.ssh/config
User kurotaky
Host foo
User sqale
Port 2222
HostName gateway.sqale.jp
IdentitiesOnly yes
IdentityFile ~/.ssh/foo.id_rsa
ServerAliveInterval 45
Host bar
User sqale
Port 2222
HostName gateway.sqale.jp
IdentitiesOnly yes
IdentityFile ~/.ssh/id_rsa
ServerAliveInterval 45
$ git remote -v
```
sqale ssh://sqale@foo:2222/foo/foo.git (fetch)
sqale ssh://sqale@foo:2222/foo/foo.git (push)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment