[darcs-devel] [issue1459] Remove support for SSH_PORT, DARCS_SSH, DARCS_SCP, DARCS_SFTP

Trent Buck bugs at darcs.net
Sun May 17 02:14:09 UTC 2009


Trent Buck <trentbuck at gmail.com> added the comment:

On Sat, May 16, 2009 at 01:27:29PM -0000, Petr Ročkai wrote:
> ssh -R 2000:localhost:22 somewhere.else
> SSH_PORT=2000 darcs get localhost:some/repo

Under what circumstances is that preferable to "darcs get
somewhere.else:some/repo"?

Now, if you were connecting to a server "fs" behind a gateway "gw"

    ssh -fNL 2000:fs:22 gw
    SSH_PORT=2000 darcs get 127.0.0.1:dir

Then I would say it'd be easier long-term to set up

    cat >>~/.ssh/config <<EOF
    Host fs
    ProxyCommand ssh gw nc %h %p
    EOF

    darcs get fs:dir

For example, if you log out and log back in, SSH_PORT won't be set,
and "darcs pull" will Just Work only in the ssh_config-based version.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1459>
__________________________________


More information about the darcs-devel mailing list