darcs

Issue 1459 Remove support for SSH_PORT, DARCS_SSH, DARCS_SCP, DARCS_SFTP

Title Remove support for SSH_PORT, DARCS_SSH, DARCS_SCP, DARCS_SFTP
Priority wishlist Status wont-fix
Milestone Resolved in
Superseder Nosy List dan, darcs-devel, darcs-users, dmitry.kurochkin, kirby, kowey, mornfall, thorkilnaur, twb
Assigned To
Topics

Created on 2009-05-11.02:23:57 by twb, last changed 2009-08-27.14:21:41 by admin.

Messages
msg7793 (view) Author: twb Date: 2009-05-11.02:23:54
Currently Darcs provides an application-specific way to set SSH
settings.  Does anyone actually use these?  If they do, why isn't
ssh_config(5) a viable and superior alternative?

>From the existing documentation:

  SSH_PORT
    When using ssh, if the SSH\_PORT environment variable is defined,
    darcs will use that port rather than the default ssh port (which
    is 22).

  DARCS_SSH
    The DARCS_SSH environment variable defines the command that darcs
    will use when asked to run ssh.  This command is NOT interpreted
    by a shell, so you cannot use shell metacharacters, and the first
    word in the command must be the name of an executable located in
    your path.

  DARCS_SCP and DARCS_SFTP
    The DARCS_SCP and DARCS_SFTP environment variables define the
    commands that darcs will use when asked to run scp or sftp.  Darcs
    uses scp and sftp to access repositories whose address is of the
    form user@foo.org:foo or foo.org:foo.  Darcs will use scp to copy
    single files (e.g. repository meta-information), and sftp to copy
    multiple files in batches (e.g. patches).  These commands are NOT
    interpreted by a shell, so you cannot use shell metacharacters,
    and the first word in the command must be the name of an
    executable located in your path.  By default, scp and sftp are
    used.  When you can use sftp, but not scp (e.g. some ISP web
    sites), it works to set DARCS_SCP to `sftp'.  The other way around
    does not work, i.e. DARCS_FTP must reference an sftp program, not
    scp.
msg7794 (view) Author: kirby Date: 2009-05-11.16:10:15
On Mon, May 11, 2009 at 4:23 AM, Trent Buck <bugs@darcs.net> wrote:
>
> New submission from Trent Buck <trentbuck@gmail.com>:
>
> Currently Darcs provides an application-specific way to set SSH
> settings.  Does anyone actually use these?  If they do, why isn't
> ssh_config(5) a viable and superior alternative?

Actually I think that DARCS_SSH is pretty important on Windows, where
there're many ssh clients.

That said, I've still to take a serious look to darcs SSH support in Windows.
msg7797 (view) Author: dan Date: 2009-05-12.06:30:54
On Monday 11 May 2009, Trent Buck wrote:
> 
> New submission from Trent Buck <trentbuck@gmail.com>:
> 
> Currently Darcs provides an application-specific way to set SSH
> settings.  Does anyone actually use these?  If they do, why isn't
> ssh_config(5) a viable and superior alternative?

I guess they are useful if you use an alternate ssh implementation (like 
putty on windows) that doesn't have ssh_config.
msg7798 (view) Author: twb Date: 2009-05-12.07:22:15
On Tue, May 12, 2009 at 09:30:09AM +0300, Dan Pascu wrote:
>> Currently Darcs provides an application-specific way to set SSH
>> settings.  Does anyone actually use these?  If they do, why isn't
>> ssh_config(5) a viable and superior alternative?
>
> I guess they are useful if you use an alternate ssh implementation
> (like putty on windows) that doesn't have ssh_config.

Nod.  I had forgotten about Windows, and I couldn't remember if Unix
SSH clients like dropbear had an equivalent of ssh_config.
msg7823 (view) Author: mornfall Date: 2009-05-16.13:27:26
Trent Buck <bugs@darcs.net> writes:
> Nod.  I had forgotten about Windows, and I couldn't remember if Unix
> SSH clients like dropbear had an equivalent of ssh_config.

ssh -R 2000:localhost:22 somewhere.else
SSH_PORT=2000 darcs get localhost:some/repo

: - )

Yours,
   Petr.
msg7825 (view) Author: twb Date: 2009-05-17.02:14:06
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.
msg7829 (view) Author: mornfall Date: 2009-05-17.07:50:24
That's a reverse operation, IIUIC. ssh -R forwards your local (say, laptop)
sshd to the remote end, and lets you grab a repository from your laptop easily
(without using the broken "put" operation).

I'm not sure what this means, with -L (instead of -R), but I suspect it's
reverse again.

Yours,
   Petr.
History
Date User Action Args
2009-05-11 02:23:57twbcreate
2009-05-11 16:10:21kirbysetstatus: unread -> unknown
nosy: + darcs-devel, kirby
messages: + msg7794
2009-05-12 06:30:58dansetnosy: + darcs-users, dan
messages: + msg7797
2009-05-12 07:22:18twbsetnosy: darcs-users, kowey, darcs-devel, simon, twb, thorkilnaur, dmitry.kurochkin, dan, kirby
messages: + msg7798
2009-05-16 13:27:29mornfallsetnosy: + mornfall
messages: + msg7823
2009-05-17 02:14:08twbsetnosy: darcs-users, kowey, darcs-devel, simon, twb, thorkilnaur, dmitry.kurochkin, dan, mornfall, kirby
messages: + msg7825
2009-05-17 07:50:26mornfallsetnosy: darcs-users, kowey, darcs-devel, simon, twb, thorkilnaur, dmitry.kurochkin, dan, mornfall, kirby
messages: + msg7829
2009-05-17 09:42:45twbsetstatus: unknown -> wont-fix
nosy: darcs-users, kowey, darcs-devel, simon, twb, thorkilnaur, dmitry.kurochkin, dan, mornfall, kirby
2009-08-10 02:07:04twbsetpriority: wishlist
nosy: darcs-users, kowey, darcs-devel, simon, twb, thorkilnaur, dmitry.kurochkin, dan, mornfall, kirby
2009-08-25 17:44:58adminsetnosy: - simon
2009-08-27 14:21:41adminsetnosy: darcs-users, kowey, darcs-devel, twb, thorkilnaur, dmitry.kurochkin, dan, mornfall, kirby