supporting roaming via git URL rewriting

Sean Whitton sean at silentflame.com
Fri Dec 23 13:58:53 CET 2011


I wonder why it would not be easier just to edit one’s SSH config.  When
my laptop moves IP address, I just change the entries in .ssh/config,
and as my remote is specified as ssh://artemis/~/var/, git can’t tell
the difference.  Any reason this won’t work?

,----
| Host artemis
| User swhitton
| HostName 192.168.0.2
| IdentityFile ~/.ssh/desktop-key
`----

,----
| Host artemis
| User swhitton
| HostName 192.168.11.4
| IdentityFile ~/.ssh/desktop-key
`----

S
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.madduck.net/pipermail/vcs-home/attachments/20111223/c4e7180d/attachment.pgp>


More information about the vcs-home mailing list