Hi, In message <_A3483@delegate-en.ML_> on 09/06/06(19:36:12) you "Gsandtner Michael" <psagqbdyi-mykgh42pkstw.ml@delegate.org> wrote: |> What kind of FTP client are you using? It might be issueing something |> special command which causes the disconnection. |> You can see the sequence of commands and responses in the LOGFILE as |the |> enclosed example, with "-vd" option. | |It is the command line ftp from krb5-workstation-1.2.2-13 RPM under |RedHat 7.2 . |Below the -vd log. |I cannot see the problem. ... |09/06 12:14:39.80 [23664] 1+0/4: FTP-SERVER-SAYS: 220 SFTP/FTP gateway |ready.^M |09/06 12:14:39.81 [23664] 1+0/4: willSTLS_SV: ServerFlags=10 |09/06 12:14:39.81 [23664] 1+0/4: proxyLogin(root,#password#,,) |09/06 12:14:39.81 [23664] 1+0/4: I-SAY: USER root^M |09/06 12:14:39.81 [23664] 1+0/4: FTP-SERVER-SAYS: 331 Send password or |passphrase for 'root'^M |09/06 12:14:39.81 [23664] 1+0/4: I-SAY: PASS ******** |09/06 12:14:42.44 [23664] 1+0/4: FTP-SERVER-SAYS: 530 No (Login failed)^M Hmm... your login to the SFTP server seems simply rejected with bad password. It is possible that DeleGate fails to relay a password to the server when the password starts with some white space characters. If so, it can be fixed with the enclosed patch. Otherwise, more log information with "-dG" option will be helpful to see what is the problem. Cheers, Yutaka -- 9 9 Yutaka Sato <pfqcabdyi-mykgh42pkstw.ml@delegate.org> http://delegate.org/y.sato/ ( ~ ) National Institute of Advanced Industrial Science and Technology _< >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan Do the more with the less -- B. Fuller diff -c ../arc/delegate9.2.4/src/ftp.c src/ftp.c *** ../arc/delegate9.2.4/src/ftp.c Thu Aug 17 20:11:54 2006 --- src/ftp.c Wed Sep 6 22:26:53 2006 *************** *** 2494,2499 **** --- 2494,2502 ---- else command_log("CLIENT-SAYS: %s",req); dp = wordScan(req,com); + if( *dp == ' ' ){ + textScan(dp+1,arg); + }else lineScan(dp,arg); strcpy(FS->fs_curcom,com); strcpy(FS->fs_curarg,arg); *************** *** 2697,2703 **** --- 2700,2709 ---- } }else if( strcasecmp(com,"PASS") == 0 ){ + textScan(arg,cpass); + /* lineScan(arg,cpass); + */ if( anonymous ){ replace_atmark("ANON-PASS",cpass); FS->fs_anonymous = 1; diff -c ../arc/delegate9.2.4/src/sftp.c src/sftp.c *** ../arc/delegate9.2.4/src/sftp.c Mon May 29 13:32:10 2006 --- src/sftp.c Wed Sep 6 22:27:26 2006 *************** *** 451,456 **** --- 451,459 ---- if( fgets(req,sizeof(req),fc) == 0 ) break; dp = wordScan(req,com); + if( *dp == ' ' ){ + textScan(dp+1,arg); + }else lineScan(dp,arg); if( strcaseeq(com,"PASS") ) DEBUG("--SFTPGW << [%s][****]\n",com);