FileZilla: SFTP "unable to connect"; FTP can't CD above homedir

FileZilla: SFTP "unable to connect"; FTP can't CD above homedir

Post by Dan Hans » Mon, 16 Jun 2003 00:48:24



I am using the FileZilla FTP/SFTP client (2.1.7) from SourceForge to
transfer files to/from a local Linux server.  I recently upgraded the
server from RedHat 7.2 to 8.0 (Kernel 2.4.18.14) and began to have
problems using FileZilla where it had worked fine before.  I tried
upgrading to FZ 2.1.7 this morning to see if it made a difference --
No.

For my purposes, either standard FTP or SFTP/SSH2 will work. Here's
what's happening:

When I connect via standard FTP, I cannot see anything outside my home
directory tree.  Going to "/" takes me to "/home/dhansen".  Entering,
for example, "/etc/whatever/" where "whatever" is any existing path
results in a response of "No such file or directory."  I don't have
this problem with other FTP clients (like QVT-FTP), so I'm pretty sure
this is not a permissions issue.

When I connect SFTP/SSH2 I get "FzSFtp.exe did not respond,
terminating connection." -- see debug output below.

Any ideas?

Status:  Connecting to 192.168.1.1:22 ...
Trace:   FzSFtp.exe: FzSFtp started and initialized.
Trace:   SftpControlSocket.cpp(2114): OnConnect(0)
Status:  Connected with 192.168.1.1:22, initializing SFTP
connection...

Trace:   SftpControlSocket.cpp(2386): OnReceive(0)
Trace:   FzSFtp.exe: SSH.C(1922): Server version:
SSH-1.99-OpenSSH_3.4p1
Trace:   FzSFtp.exe: SSH.C(1958): We claim version:
SSH-2.0-PuTTY-Local: Mar 23 2003 16:06:43
Trace:   FzSFtp.exe: SSH.C(1960): Using SSH protocol version 2
Trace:   SftpControlSocket.cpp(2386): OnReceive(0)
Trace:   FzSFtp.exe: SSH.C(4064): Doing Diffie-Hellman group exchange
Trace:   SftpControlSocket.cpp(2386): OnReceive(0)
Error:   FzSFtp.exe did not respond, terminating connection.
Trace:   SftpControlSocket.cpp(2193): DoClose(0)
Trace:   SftpControlSocket.cpp(2223): ResetOperation(4100)
Error:   Unable to connect!

I also tried upgrading to FileZilla 2.1.7 and then tried SSH 1 with no
better luck.  The debug log:


Trace:   FzSFtp.exe: SSH.C(1922): Server version:
SSH-1.99-OpenSSH_3.4p1
Trace:   FzSFtp.exe: SSH.C(1974): We claim version:
SSH-1.5-PuTTY-Local: Apr 27 2003 20:08:03
Trace:   FzSFtp.exe: SSH.C(1977): Using SSH protocol version 1
Trace:   FzSFtp.exe: SSH.C(2311): Received public keys
Trace:   FzSFtp.exe: SSH.C(2323): Host key fingerprint is:
Trace:   FzSFtp.exe: SSH.C(2328):         1024
49:3b:21:0f:a1:83:a3:f3:c7:16:75:d4:a6:8d:5c:46
Trace:   FzSFtp.exe: SSH.C(2388): Encrypted session key
Trace:   FzSFtp.exe: SSH.C(2401): AES not supported in SSH1, skipping
Trace:   FzSFtp.exe: SSH.C(2438): Using Blowfish encryption
Trace:   FzSFtp.exe: SSH.C(2449): Trying to enable encryption...
Trace:   FzSFtp.exe: SSH.C(669): Initialised Blowfish encryption
Trace:   FzSFtp.exe: SSH.C(2460): Installing CRC compensation attack
detector
Trace:   SftpControlSocket.cpp(2412): OnReceive(0)   caller=0x022d9e00
Trace:   FzSFtp.exe: SSH.C(2469): Successfully started encryption
Trace:   FzSFtp.exe: SSH.C(2509): Sent username "dhansen"
Trace:   SftpControlSocket.cpp(2412): OnReceive(0)   caller=0x022d9e00
Trace:   FzSFtp.exe: SSH.C(2934): Sending password with camouflage
packets
Trace:   FzSFtp.exe: SSH.C(2978): Sent password
Trace:   SftpControlSocket.cpp(2412): OnReceive(0)   caller=0x022d9e00
Trace:   FzSFtp.exe: SSH.C(2991): Authentication successful
Trace:   FzSFtp.exe: SSH.C(3315): Started session
Trace:   SftpControlSocket.cpp(2412): OnReceive(0)   caller=0x022d9e00
Trace:   SftpControlSocket.cpp(2412): OnReceive(0)   caller=0x022d9e00
Trace:   FzSFtp.exe: SSH.C(3642): Server sent command exit status 127
Response:        Fatal: unable to initialise SFTP: could not connect
Trace:   SftpControlSocket.cpp(2219): DoClose(0)   caller=0x022d9e00
Trace:   SftpControlSocket.cpp(2249): ResetOperation(4100)  
caller=0x022d9e00
Error:   Unable to connect!

 
 
 

FileZilla: SFTP "unable to connect"; FTP can't CD above homedir

Post by Daniel Hanse » Mon, 16 Jun 2003 22:16:32



 >>I don't have this problem with other FTP clients (like QVT-FTP),
 >>so I'm pretty surethis is not a permissions issue.

It turns out I DO have exactly the same problem in QVT-FTP -- so it would appear to be an FTP config issue.  Any pointers still appreciated!

Dan


 >>I am using the FileZilla FTP/SFTP client (2.1.7) from SourceForge to
 >>transfer files to/from a local Linux server.  I recently upgraded the
 >>server from RedHat 7.2 to 8.0 (Kernel 2.4.18.14) and began to have
 >>problems using FileZilla where it had worked fine before.  I tried
 >>upgrading to FZ 2.1.7 this morning to see if it made a difference --
 >>No.
 >>
 >>For my purposes, either standard FTP or SFTP/SSH2 will work. Here's
 >>what's happening:
 >>
 >>When I connect via standard FTP, I cannot see anything outside my home
 >>directory tree.  Going to "/" takes me to "/home/dhansen".  Entering,
 >>for example, "/etc/whatever/" where "whatever" is any existing path
 >>results in a response of "No such file or directory."  I don't have
 >>this problem with other FTP clients (like QVT-FTP), so I'm pretty sure
 >>this is not a permissions issue.
 >>
 >>When I connect SFTP/SSH2 I get "FzSFtp.exe did not respond,
 >>terminating connection." -- see debug output below.
 >>
 >>Any ideas?
 >>
 >>Status:         Connecting to 192.168.1.1:22 ...
 >>Trace:  FzSFtp.exe: FzSFtp started and initialized.
 >>Trace:  SftpControlSocket.cpp(2114): OnConnect(0)
 >>Status:         Connected with 192.168.1.1:22, initializing SFTP
 >>connection...

 >>Trace:  SftpControlSocket.cpp(2386): OnReceive(0)
 >>Trace:  FzSFtp.exe: SSH.C(1922): Server version:
 >>SSH-1.99-OpenSSH_3.4p1
 >>Trace:  FzSFtp.exe: SSH.C(1958): We claim version:
 >>SSH-2.0-PuTTY-Local: Mar 23 2003 16:06:43
 >>Trace:  FzSFtp.exe: SSH.C(1960): Using SSH protocol version 2
 >>Trace:  SftpControlSocket.cpp(2386): OnReceive(0)
 >>Trace:  FzSFtp.exe: SSH.C(4064): Doing Diffie-Hellman group exchange
 >>Trace:  SftpControlSocket.cpp(2386): OnReceive(0)
 >>Error:  FzSFtp.exe did not respond, terminating connection.
 >>Trace:  SftpControlSocket.cpp(2193): DoClose(0)
 >>Trace:  SftpControlSocket.cpp(2223): ResetOperation(4100)
 >>Error:  Unable to connect!
 >>
 >>I also tried upgrading to FileZilla 2.1.7 and then tried SSH 1 with no
 >>better luck.  The debug log:
 >>

 >>Trace:  FzSFtp.exe: SSH.C(1922): Server version:
 >>SSH-1.99-OpenSSH_3.4p1
 >>Trace:  FzSFtp.exe: SSH.C(1974): We claim version:
 >>SSH-1.5-PuTTY-Local: Apr 27 2003 20:08:03
 >>Trace:  FzSFtp.exe: SSH.C(1977): Using SSH protocol version 1
 >>Trace:  FzSFtp.exe: SSH.C(2311): Received public keys
 >>Trace:  FzSFtp.exe: SSH.C(2323): Host key fingerprint is:
 >>Trace:  FzSFtp.exe: SSH.C(2328):         1024
 >>49:3b:21:0f:a1:83:a3:f3:c7:16:75:d4:a6:8d:5c:46
 >>Trace:  FzSFtp.exe: SSH.C(2388): Encrypted session key
 >>Trace:  FzSFtp.exe: SSH.C(2401): AES not supported in SSH1, skipping
 >>Trace:  FzSFtp.exe: SSH.C(2438): Using Blowfish encryption
 >>Trace:  FzSFtp.exe: SSH.C(2449): Trying to enable encryption...
 >>Trace:  FzSFtp.exe: SSH.C(669): Initialised Blowfish encryption
 >>Trace:  FzSFtp.exe: SSH.C(2460): Installing CRC compensation attack
 >>detector
 >>Trace:  SftpControlSocket.cpp(2412): OnReceive(0)   caller=0x022d9e00
 >>Trace:  FzSFtp.exe: SSH.C(2469): Successfully started encryption
 >>Trace:  FzSFtp.exe: SSH.C(2509): Sent username "dhansen"
 >>Trace:  SftpControlSocket.cpp(2412): OnReceive(0)   caller=0x022d9e00
 >>Trace:  FzSFtp.exe: SSH.C(2934): Sending password with camouflage
 >>packets
 >>Trace:  FzSFtp.exe: SSH.C(2978): Sent password
 >>Trace:  SftpControlSocket.cpp(2412): OnReceive(0)   caller=0x022d9e00
 >>Trace:  FzSFtp.exe: SSH.C(2991): Authentication successful
 >>Trace:  FzSFtp.exe: SSH.C(3315): Started session
 >>Trace:  SftpControlSocket.cpp(2412): OnReceive(0)   caller=0x022d9e00
 >>Trace:  SftpControlSocket.cpp(2412): OnReceive(0)   caller=0x022d9e00
 >>Trace:  FzSFtp.exe: SSH.C(3642): Server sent command exit status 127
 >>Response:       Fatal: unable to initialise SFTP: could not connect
 >>Trace:  SftpControlSocket.cpp(2219): DoClose(0)   caller=0x022d9e00
 >>Trace:  SftpControlSocket.cpp(2249): ResetOperation(4100)  
 >>caller=0x022d9e00
 >>Error:  Unable to connect!

Dan Hansen
http://www.wildwisconsin.com

 
 
 

1. can't ping, ftp etc "Unable to connect, unknown host"

it is me again.

I'm having troubles with my PPP script. (who hasn't?)

This is what happends.

# pppd
the modem dials the number and I connect to my ISP.

When I check /var/log/messages I see that I've got an IP address.

BUT Something is wrong with the host lookup things. I can't do anything!
When I try to ftp it says. "Unknown host servername" or "Unable to connect,
unknown host" etc..

in /etc/resolv.conf I've got all the nameservers that my ISP provides.

What have I missed?

Thanx!

/Martin

2. How to install local printer under Solaris

3. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

4. reverse engineering windows driver for linux

5. GETSERVBYNAME()????????????????????"""""""""""""

6. Multicast on loopback device?

7. "connect" between "bind" and "listen"

8. fbsd 4.4 ports

9. Can't get "chat" to connect me to "Concentric"

10. FTP works, but "ls" or "dir" doesn't ???

11. Why does "cd /usr/////bin" = "cd /usr/bin"?

12. How to get "cd dir" working as "cd dir ; pwd"?

13. Type "(", ")" and "{", "}" in X...