Article delegate-en/3491 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: ftp/sftp gateway not working
14 Sep 2006 10:18:58 GMT "Gsandtner Michael" <psagqbdyi-lnxhrzu7rvnr.ml@ml.delegate.org>


I tried delegate9.2.5-pre2. The connection problem is solved. Thanks.

But now the "cd" command seems not to work.
After connecting "ls" gives the correct listing of users home.
After "cd test" (the test directory exists on the server) I am in the
root directory of the server.

The ftp log and delegate log below.

Moreover, is it possible to use public key authentication ?

Best regards --Michi

 220 SFTP/FTP gateway ready.
 331 Send password or passphrase for 'wln9adv'
230- Ok
230--  @ @
230  \( - )/ -- { connected to `proxy2.magwien.gv.at' }
ftp> pwd
257 "/"
ftp> ls
227 Entering Passive Mode (10,152,101,163,147,191).
150 Ok
ls -l ^M^Jdrwx------    0 60111    60000         416 Sep 12 14:05 .
drwx------    0 0        0            8192 Jun 15 13:34 ..
-rw-------    0 60111    60000         794 Sep 14 13:42 .sh_history
drwxr-xr-x    0 60111    60000         288 Aug 30 11:23 .ssh
drwxr-xr-x    0 60111    60000         320 Jun 15 16:53 p
drwxr-xr-x    0 60111    60000         352 Sep  5 12:11 test
226 Ok
ftp> cd test
250 Ok
ftp> pwd
257 "/"
ftp> ls
227 Entering Passive Mode (10,152,101,163,147,194).
150 Ok
ls -l ^M^Jlrwxrwxrwx    0 0        0               9 Jul 26  2002
$SYSNAME
drwxr-xr-x    0 0        0            8192 Sep  8 20:29 .
drwxr-xr-x    0 0        0            8192 Sep  8 20:29 ..
lrwxrwxrwx    0 0        0              12 Jul 26  2002 bin
lrwxrwxrwx    0 0        0              12 Jul 26  2002 dev
lrwxrwxrwx    0 0        0              12 Jul 26  2002 etc
drwxr-xr-x    0 0        0            8192 May 28  2005 ibm
lrwxrwxrwx    0 0        0              12 Jul 26  2002 lib
lrwxrwxrwx    0 0        0              12 Jul 26  2002 log
drwxr-xr-x    0 0        0            8192 Mar 11  2005 mnt
lrwxrwxrwx    0 0        0              12 Mar 18  2005 nfs
lrwxrwxrwx    0 0        0              12 Jul 26  2002 opt
drwxrwxr-x    0 0        0            8192 Oct  7  2005 plx0
drwxr-xr-x    0 0        0            8192 Feb  2  2006 prd
lrwxrwxrwx    0 0        0              16 Jul 26  2002 samples
drwx------    0 0        0            8192 Jun 15 13:34 sftp
lrwxrwxrwx    0 0        0              12 Jul 26  2002 tmp
lrwxrwxrwx    0 0        0              14 Dec  2  2004 trace
lrwxrwxrwx    0 0        0              12 Jul 26  2002 usr
lrwxrwxrwx    0 0        0              12 Jul 26  2002 var
226 Ok
ftp>


And here log of ./delegate9.2.5-pre2/src/delegated -P9021 SERVER=ftp
MOUNT="/* sftp://proxy2.magwien.gv.at:9022/*"  -f -vd -dG

09/14 12:00:08.76 [10404] 1+0/4: --SFTP: sent the password...
09/14 12:00:08.76 [10404] 1+0/4: --SFTP >>(FORK-3)
09/14 12:00:08.87 [10404] 1+0/4: --SFTP >>(FORK-3/NO-NL)[sftp> ]
09/14 12:00:08.89 [10404] 1+0/4: --SFTP >>(FORK-4) progress^M^JProgress
meter disabled
09/14 12:00:08.91 [10404] 1+0/4: --SFTP >>(FORK-4/NO-NL)[sftp> ]
09/14 12:00:08.93 [10384] 1+0/4: FTP-SERVER-SAYS: 230 Ok^M
09/14 12:00:08.93 [10404] 1+0/4: --SFTPGW >> 230 Ok
09/14 12:00:08.93 [10404] 1+0/4: --SFTP << pwd^M
09/14 12:00:08.93 [10404] 1+0/4: --SFTP >>(PASS) pwd^M^JRemote working
directory: /sftp/wln9adv
09/14 12:00:08.95 [10404] 1+0/4: --SFTP >>(PASS/NO-NL)[sftp> ]
09/14 12:00:08.97 [10404] 1+0/4: --SFTPGW << [PWD][]
09/14 12:00:08.97 [10404] 1+0/4: --SFTP << pwd^M
09/14 12:00:08.97 [10404] 1+0/4: --SFTP >>(PWD) pwd^M^JRemote working
directory: /sftp/wln9adv
09/14 12:00:08.99 [10404] 1+0/4: --SFTP >>(PWD/NO-NL)[sftp> ]
09/14 12:00:09.01 [10384] 1+0/4: FTP-SERVER-SAYS: 257 "/"^M
09/14 12:00:09.01 [10384] 1+0/4: LoginPWD: "/"
09/14 12:00:09.01 [10384] 1+0/4: service_ftp: start PollIns=[20,13]
09/14 12:00:09.01 [10404] 1+0/4: --SFTPGW >> 257 "/"
09/14 12:00:09.01 [10384] 1+0/5: #### SYST^M
09/14 12:00:09.01 [10384] 1+0/5/1: I-SAY: SYST^M
09/14 12:00:09.01 [10404] 1+0/4: --SFTPGW << [SYST][]
09/14 12:00:09.01 [10384] 1+0/5/1: FTP-SERVER-SAYS: 502 No not
supported^M
09/14 12:00:09.01 [10384] 1+0/5/1: service_ftp: start PollIns=[20,13]
09/14 12:00:09.02 [10404] 1+0/4: --SFTPGW >> 502 No not supported
09/14 12:00:11.19 [10384] 1+0/6/1: #### PWD^M
09/14 12:00:11.19 [10384] 1+0/6/2: I-SAY: PWD^M
09/14 12:00:11.19 [10404] 1+0/4: --SFTPGW << [PWD][]
09/14 12:00:11.19 [10404] 1+0/4: --SFTP << pwd^M
09/14 12:00:11.19 [10404] 1+0/4: --SFTP >>(PWD) pwd^M^JRemote working
directory: /sftp/wln9adv
09/14 12:00:11.20 [10404] 1+0/4: --SFTP >>(PWD/NO-NL)[sftp> ]
09/14 12:00:11.22 [10384] 1+0/6/2: FTP-SERVER-SAYS: 257 "/"^M
09/14 12:00:11.22 [10384] 1+0/6/2: service_ftp: start PollIns=[20,13]
09/14 12:00:11.22 [10404] 1+0/4: --SFTPGW >> 257 "/"
09/14 12:00:12.72 [10384] 1+0/7/2: #### PASV^M
09/14 12:00:12.72 [10384] 1+0/7/3: FTP-control-remote:
10.152.101.163:9021 [33]
09/14 12:00:12.72 [10384] 1+0/7/3: ##NOT ViaSocks-B## 10.152.101.163:0
09/14 12:00:12.72 [10384] 1+0/7/3: listen(19,1) OK.
09/14 12:00:12.72 [10384] 1+0/7/3: FTP-data-local[19]:
10.152.101.163:37823
09/14 12:00:12.72 [10384] 1+0/7/3: I-SAY: PASV^M
09/14 12:00:12.72 [10404] 1+0/4: --SFTPGW << [PASV][]
09/14 12:00:12.72 [10404] 1+0/4: server_open(SftpGW,*:0,listen=1)
09/14 12:00:12.72 [10404] 1+0/4: listen(13,1) OK.
09/14 12:00:12.72 [10404] 1+0/4: server_open(SftpGW,*:0) BOUND
09/14 12:00:12.72 [10384] 1+0/7/3: FTP-SERVER-SAYS: 227 Enterning
Passive Mode (0,0,0,0,147,192)^M
09/14 12:00:12.72 [10384] 1+0/7/3: ##NOT ViaSocks-B## 0.0.0.0:37824
09/14 12:00:12.72 [10384] 1+0/7/3: ftp_conndata: connected
127.0.0.1:37825->localhost/0.0.0.0:37824 [21](0.0)
09/14 12:00:12.72 [10384] 1+0/7/3: KeepAlive[21] = 1
09/14 12:00:12.72 [10384] 1+0/7/3: -- with PASV
09/14 12:00:12.72 [10384] 1+0/7/3: PASV [B][10,152,101,163,147,191] >>
227 Entering Passive Mode (10,152,101,163,147,191).^M
09/14 12:00:12.72 [10384] 1+0/7/3: service_ftp: start PollIns=[20,13]
09/14 12:00:12.72 [10404] 1+0/4: --SFTPGW >> 227 Enterning Passive Mode
(0,0,0,0,147,192)
09/14 12:00:12.72 [10384] 1+0/8/3: #### LIST^M
09/14 12:00:12.72 [10384] 1+0/8/4: *** / MOUNTED TO[5]
sftp://proxy2.magwien.gv.at:9022/ ***
09/14 12:00:12.72 [10384] 1+0/8/4: *** / =>
sftp://proxy2.magwien.gv.at:9022/ ***
09/14 12:00:12.72 [10384] 1+0/8/4: mount_ftparg(LIST)#A#
[]->[sftp://proxy2.magwien.gv.at:9022/]
09/14 12:00:12.72 [10384] 1+0/8/4: MOUNTED REMOTE [] ->
[sftp://proxy2.magwien.gv.at:9022/][]
09/14 12:00:12.72 [10384] 1+0/8/4: I-SAY: LIST^M
09/14 12:00:12.72 [10404] 1+0/4: --SFTPGW << [LIST][]
09/14 12:00:12.72 [10404] 1+0/4: ## accept([13]:37824)=20
09/14 12:00:12.72 [10384] 1+0/8/4: FTP-SERVER-SAYS: 150 Ok^M
09/14 12:00:12.72 [10384] 1+0/8/4: FTP-CACHE: LIST [] = [][]:0
09/14 12:00:12.72 [10384] 1+0/8/4: Start accept on PASV port
09/14 12:00:12.72 [10384] 1+0/8/4: ## accept([19]:37823)=22
09/14 12:00:12.72 [10384] 1+0/8/4: setsockbuf[22] in:0->0
out:16384->32768
09/14 12:00:12.72 [10384] 1+0/8/4: FTP data-relay(21,22): bufsize=32768
09/14 12:00:12.72 [10384] 1+0/8/4: DATA 127.0.0.1:37824 ->
127.0.0.1:37825 .. 10.152.101.163:37823 -> 10.152.101.126:49313
09/14 12:00:12.72 [10384] 1+0/8/4: NBIO[FTP-DATA][21] 0 -> 1
09/14 12:00:12.72 [10384] 1+0/8/4: NBIO[FTP-DATA][22] 0 -> 1
09/14 12:00:12.72 [10404] 1+0/4: --SFTPGW >> 150 Ok
09/14 12:00:12.72 [10404] 1+0/4: --SFTP << ls -l ^M
09/14 12:00:12.79 [10404] 1+0/4: --SFTPGW >> 226 Ok
09/14 12:00:12.79 [10384] 1+0/8/4: FTP data-relay([21]15720b ->
[22]10000b) 381b / 1/ (59) 0.07s (read-EOF)
09/14 12:00:12.79 [10384] 1+0/8/4: LINGER: [22] 30 8{1,30}
09/14 12:00:12.79 [10384] 1+0/8/4: NBIO[FTP-DATA][21] 1 -> 0
09/14 12:00:12.79 [10384] 1+0/8/4: NBIO[FTP-DATA][22] 1 -> 0
09/14 12:00:12.79 [10384] 1+0/8/4: PASVrelay(21,22): 381
09/14 12:00:12.79 [10384] 1+0/8/4: FTP-SERVER-SAYS: 226 Ok^M
09/14 12:00:12.80 [10384] 1+0/8/4: service_ftp: start PollIns=[20,13]
09/14 12:00:13.90 [10381] 1+0: AcceptByMain: TIMEOUT(children=1,
timeout=15)
09/14 12:00:13.92 [10381] 1+0:
dirfopen(/var/spool/delegate-nobody/act/restart/_9021_,r): 0 [-1]
09/14 12:00:13.92 [10381] 1+0: AcceptByMain: start polling(100)[13]...
09/14 12:00:14.03 [10381] 1+0: AcceptByMain: start polling(15000)[13]...
09/14 12:00:18.93 [10384] 1+0/9/4: #### CWD test^M
09/14 12:00:18.93 [10384] 1+0/9/5: *** / MOUNTED TO[5]
sftp://proxy2.magwien.gv.at:9022/ ***
09/14 12:00:18.93 [10384] 1+0/9/5: *** /test/ =>
sftp://proxy2.magwien.gv.at:9022/test/ ***
09/14 12:00:18.93 [10384] 1+0/9/5: MOUNTED-TO:
//proxy2.magwien.gv.at:9022/test/
09/14 12:00:18.93 [10384] 1+0/9/5: -SFTPGW:CWD set FS->fs_proto=sftp
09/14 12:00:18.93 [10384] 1+0/9/5: I-SAY: PWD^M
09/14 12:00:18.93 [10404] 1+0/4: --SFTPGW << [PWD][]
09/14 12:00:18.93 [10404] 1+0/4: --SFTP << pwd^M
09/14 12:00:18.93 [10404] 1+0/4: --SFTP >>(PWD) pwd^M^JRemote working
directory: /sftp/wln9adv
09/14 12:00:18.93 [10404] 1+0/4: --SFTP >>(PWD/NO-NL)[sftp> ]
09/14 12:00:18.95 [10384] 1+0/9/5: FTP-SERVER-SAYS: 257 "/"^M
09/14 12:00:18.95 [10404] 1+0/4: --SFTPGW >> 257 "/"
09/14 12:00:18.95 [10384] 1+0/9/5: I-SAY: CWD /^M
09/14 12:00:18.95 [10404] 1+0/4: --SFTPGW << [CWD][/]
09/14 12:00:18.95 [10404] 1+0/4: --SFTP << cd /^M
09/14 12:00:18.96 [10404] 1+0/4: --SFTP >>(CWD/NO-NL)[cd /^M^J]
09/14 12:00:18.99 [10404] 1+0/4: --SFTP >>(CWD/NO-NL)[sftp> ]
09/14 12:00:19.01 [10404] 1+0/4: --SFTPGW >> 250 Ok
09/14 12:00:19.01 [10384] 1+0/9/5: FTP-SERVER-SAYS: 250 Ok^M
09/14 12:00:19.01 [10384] 1+0/9/5: [/] thru. CWD /test/
09/14 12:00:19.01 [10384] 1+0/9/5: I-SAY: CWD test/^M
09/14 12:00:19.01 [10404] 1+0/4: --SFTPGW << [CWD][test/]
09/14 12:00:19.01 [10404] 1+0/4: --SFTP << cd test/^M
09/14 12:00:19.02 [10404] 1+0/4: --SFTP >>(CWD) cd test/^M^JCouldn't
canonicalise: No such file or directory^M
09/14 12:00:19.02 [10404] 1+0/4: --SFTP >>(CWD/NO-NL)[sftp> ]
09/14 12:00:19.03 [10404] 1+0/4: --SFTPGW >> 250 Ok
09/14 12:00:19.03 [10384] 1+0/9/5: FTP-SERVER-SAYS: 250 Ok^M
09/14 12:00:19.03 [10384] 1+0/9/5: service_ftp: start PollIns=[20,13]
09/14 12:00:21.87 [10384] 1+0/10/5: #### PWD^M
09/14 12:00:21.87 [10384] 1+0/10/6: I-SAY: PWD^M
09/14 12:00:21.87 [10404] 1+0/4: --SFTPGW << [PWD][]
09/14 12:00:21.87 [10404] 1+0/4: --SFTP << pwd^M
09/14 12:00:21.87 [10404] 1+0/4: --SFTP >>(PWD) pwd^M^JRemote working
directory: /
09/14 12:00:21.87 [10404] 1+0/4: --SFTP >>(PWD/NO-NL)[sftp> ]
09/14 12:00:21.88 [10404] 1+0/4: --SFTPGW >> 257 "/"
09/14 12:00:21.88 [10384] 1+0/10/6: FTP-SERVER-SAYS: 257 "/"^M
09/14 12:00:21.88 [10384] 1+0/10/6: service_ftp: start PollIns=[20,13]
09/14 12:00:22.00 [10384] 1+0/11/6: #### PASV^M
09/14 12:00:22.00 [10384] 1+0/11/7: FTP-control-remote:
10.152.101.163:9021 [33]
09/14 12:00:23.00 [10384] 1+0/11/7: ##NOT ViaSocks-B## 10.152.101.163:0
09/14 12:00:23.00 [10384] 1+0/11/7: listen(19,1) OK.
09/14 12:00:23.00 [10384] 1+0/11/7: FTP-data-local[19]:
10.152.101.163:37826
09/14 12:00:23.00 [10384] 1+0/11/7: I-SAY: PASV^M
09/14 12:00:23.00 [10404] 1+0/4: --SFTPGW << [PASV][]
09/14 12:00:23.00 [10404] 1+0/4: server_open(SftpGW,*:0,listen=1)
09/14 12:00:23.00 [10404] 1+0/4: listen(20,1) OK.
09/14 12:00:23.00 [10404] 1+0/4: server_open(SftpGW,*:0) BOUND
09/14 12:00:23.00 [10404] 1+0/4: --SFTPGW >> 227 Enterning Passive Mode
(0,0,0,0,147,195)
09/14 12:00:23.00 [10384] 1+0/11/7: FTP-SERVER-SAYS: 227 Enterning
Passive Mode (0,0,0,0,147,195)^M
09/14 12:00:23.00 [10384] 1+0/11/7: ##NOT ViaSocks-B## 0.0.0.0:37827
09/14 12:00:23.00 [10384] 1+0/11/7: ftp_conndata: connected
127.0.0.1:37828->localhost/0.0.0.0:37827 [21](0.0)
09/14 12:00:23.00 [10384] 1+0/11/7: KeepAlive[21] = 1
09/14 12:00:23.00 [10384] 1+0/11/7: PASV [B][10,152,101,163,147,194] >>
227 Entering Passive Mode (10,152,101,163,147,194).^M
09/14 12:00:23.00 [10384] 1+0/11/7: service_ftp: start PollIns=[20,13]
09/14 12:00:23.00 [10384] 1+0/12/7: #### LIST^M
09/14 12:00:23.00 [10384] 1+0/12/8: *** / MOUNTED TO[5]
sftp://proxy2.magwien.gv.at:9022/ ***
09/14 12:00:23.00 [10384] 1+0/12/8: *** /test/ =>
sftp://proxy2.magwien.gv.at:9022/test/ ***
09/14 12:00:23.00 [10384] 1+0/12/8: I-SAY: LIST^M
09/14 12:00:23.00 [10404] 1+0/4: --SFTPGW << [LIST][]
09/14 12:00:23.00 [10404] 1+0/4: ## accept([20]:37827)=21
09/14 12:00:23.00 [10404] 1+0/4: --SFTPGW >> 150 Ok
09/14 12:00:23.00 [10404] 1+0/4: --SFTP << ls -l ^M
09/14 12:00:23.00 [10384] 1+0/12/8: FTP-SERVER-SAYS: 150 Ok^M
09/14 12:00:23.00 [10384] 1+0/12/8: FTP-CACHE: LIST [] = [][]:0
09/14 12:00:23.00 [10384] 1+0/12/8: Start accept on PASV port
09/14 12:00:23.00 [10384] 1+0/12/8: ## accept([19]:37826)=22
09/14 12:00:23.00 [10384] 1+0/12/8: setsockbuf[22] in:0->0
out:16384->32768
09/14 12:00:23.00 [10384] 1+0/12/8: FTP data-relay(21,22): bufsize=32768
09/14 12:00:23.00 [10384] 1+0/12/8: DATA 127.0.0.1:37827 ->
127.0.0.1:37828 .. 10.152.101.163:37826 -> 10.152.101.126:49314
09/14 12:00:23.00 [10384] 1+0/12/8: NBIO[FTP-DATA][21] 0 -> 1
09/14 12:00:23.00 [10384] 1+0/12/8: NBIO[FTP-DATA][22] 0 -> 1
09/14 12:00:23.12 [10404] 1+0/4: --SFTPGW >> 226 Ok
09/14 12:00:23.12 [10384] 1+0/12/8: FTP data-relay([21]15720b ->
[22]10000b) 2109b / 1/ (2D) 0.12s (read-EOF)
09/14 12:00:23.12 [10384] 1+0/12/8: LINGER: [22] 30 8{1,30}
09/14 12:00:23.12 [10384] 1+0/12/8: NBIO[FTP-DATA][21] 1 -> 0
09/14 12:00:23.13 [10384] 1+0/12/8: NBIO[FTP-DATA][22] 1 -> 0
09/14 12:00:23.13 [10384] 1+0/12/8: PASVrelay(21,22): 2109
09/14 12:00:23.13 [10384] 1+0/12/8: FTP-SERVER-SAYS: 226 Ok^M
09/14 12:00:23.13 [10384] 1+0/12/8: service_ftp: start PollIns=[20,13]

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V