Hello,
a CSW[1] user of mine asked why lftp doesn't work when doing sftp stuff
out of the box with SUNs version of openssh (since Solaris 9). He also
tracked the problem and SUNs ssh doesn't handle 'ssh -ax' but does
'ssh -a -x' which does normal openssh of course, too. So I made a patch
ready and let him test it with vanilla openssh and SUNs version and it
worked. I shiped new blastwave lftp packages. So it would be nice if you
could consider this patch for upstream, because AFAIK it doesn't break
any other ssh version.
Sincerely,
Thomas
--- ./doc/lftp.1.orig 2005-01-20 00:01:44.634620000 +0100
+++ ./doc/lftp.1 2005-01-20 00:02:44.454620000 +0100
@@ -888,7 +888,7 @@
.TP
.BR fish:connect-program \ (string)
the program to use for connecting to remote server. It should support `-l'
option
-for user name, `-p' for port number. Default is `ssh -ax'. You can set it to
+for user name, `-p' for port number. Default is `ssh -a -x'. You can set it to
`rsh', for example.
.TP
.BR fish:shell \ (string)
@@ -1308,7 +1308,7 @@
.TP
.BR sftp:connect-program \ (string)
the program to use for connecting to remote server. It should support `-l'
option
-for user name, `-p' for port number. Default is `ssh -ax'. You can set it to
+for user name, `-p' for port number. Default is `ssh -a -x'. You can set it to
`rsh', for example.
.TP
.BR sftp:max-packets-in-flight \ (number)
--- ./src/resource.cc.orig 2005-01-20 00:01:44.641851000 +0100
+++ ./src/resource.cc 2005-01-20 00:02:58.497198000 +0100
@@ -299,7 +299,7 @@
res_sftp_proto_ver("sftp:protocol-version","4",ResMgr::UNumberValidate,0),
res_sftp_rsize ("sftp:size-read", "0x8000",ResMgr::UNumberValidate,0),
res_sftp_wsize ("sftp:size-write","0x8000",ResMgr::UNumberValidate,0),
- res_sftp_conn_prog("sftp:connect-program","ssh -ax",0,0),
+ res_sftp_conn_prog("sftp:connect-program","ssh -a -x",0,0),
res_sftp_srv_prog ("sftp:server-program","sftp",0,0);
static ResDecl
@@ -333,7 +333,7 @@
static ResDecl
fish_shell ("fish:shell", "/bin/sh", 0,0),
- fish_connect("fish:connect-program", "ssh -ax", 0,0);
+ fish_connect("fish:connect-program", "ssh -a -x", 0,0);
static ResDecl
res_dir_colors ("color:dir-colors", "", 0,ResMgr::NoClosure);
--- ./src/Fish.cc.orig 2005-01-20 00:01:44.649112000 +0100
+++ ./src/Fish.cc 2005-01-20 00:03:09.302476000 +0100
@@ -146,7 +146,7 @@
const char *prog=Query("connect-program",hostname);
if(!prog || !prog[0])
- prog="ssh -ax";
+ prog="ssh -a -x";
char *a=alloca_strdup(prog);
ArgV *cmd=new ArgV;
for(a=strtok(a," "); a; a=strtok(0," "))
--- ./src/SFtp.cc.orig 2005-01-20 00:01:44.658517000 +0100
+++ ./src/SFtp.cc 2005-01-20 00:03:19.193661000 +0100
@@ -162,7 +162,7 @@
const char *init=Query("server-program",hostname);
const char *prog=Query("connect-program",hostname);
if(!prog || !prog[0])
- prog="ssh -ax";
+ prog="ssh -a -x";
char *a=alloca_strdup(prog);
ArgV *cmd=new ArgV;
for(a=strtok(a," "); a; a=strtok(0," "))