Last active
August 29, 2015 13:56
-
-
Save kurotaky/9187018 to your computer and use it in GitHub Desktop.
ssh複数アカウント切り替え
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
# ~/.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 |
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
$ 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