Opened 15 years ago

Last modified 3 years ago

#4834 reopened Bug report

filezilla does not work with UNIX systems where the user accounts shell is set to "rssh"

Reported by: Matt Weatherford Owned by:
Priority: normal Component: FileZilla Client
Keywords: rssh, osx, linux, shell Cc:
Component version: Operating system type: Linux
Operating system version: x32 Linux, OS X 10.6

Description

"rssh" is a ssh-only shell that should work with any SFTP implementation... from the man page:

rssh is a restricted shell for providing limited access to a host via ssh(1), allowing a user whose shell is configured to rssh to use one or more of the command(s) scp(1), sftp(1) cvs(1), rdist(1), and rsync(1), and only those commands. It is intended primarily to work with OpenSSH (see http://www.openssh.com), but may work with other implementations.

When I connect to a linux host (Ubunutu HH 8.04 LTS x86-32)
from a Mac OS X or Linux x32 client using Filezilla client,
if the user I connect as has the shell set to "bash" - everything
works properly.

If I connect to the same user again, having changed the shell to "rssh", it fails. See output below: (first is succssful, bash-shell connect, second is failed rssh-shell connect)

Status: Connecting to onion...
Response: fzSftp started
Command: open "testy@onion" 22
Command: Trust new Hostkey: Yes
Command: Pass: *
Status: Connected to onion.csde.washington.edu
Status: Retrieving directory listing...
Command: pwd
Response: Current directory is: "/home/testy"
Command: ls
Status: Listing directory /home/testy
Status: Calculating timezone offset of server...
Command: mtime ".bashrc"
Response: 1241712071
Status: Timezone offsets: Server: -25200 seconds. Local: -25200 seconds. Difference: 0 seconds.
Status: Directory listing successful
Status: Disconnected from server
Status: Connecting to onion...
Response: fzSftp started
Command: open "testy@onion" 22
Command: Pass: *
Status: Connected to onion.csde.washington.edu
Error: Could not connect to server
Status: Waiting to retry...
Status: Connecting to onion...
Response: fzSftp started
Command: open "testy@onion" 22
Command: Pass: *
Status: Connected to onion.csde.washington.edu
Error: Fatal: unable to initialise SFTP on server: could not connect
Error: Could not connect to server

I have verified this on OS X and Linux x32 Filezilla client.

Thanks for a great product & stay free! :)

Matt

P.S. there is a misspelling as well: initialise should be "initialize" unless you are a Brit.... ;)

-Matt "the Yank"

Attachments (2)

blue1.jpg (65.6 KB ) - added by Slavon 9 years ago.
crooksandliars.com
Bob Foster.png (133.1 KB ) - added by Slavon 9 years ago.
Find here espresso kitchens for your kids.

Download all attachments as: .zip

Change History (7)

comment:1 by Matt Weatherford, 15 years ago

Keywords: rssh osx linux shell added

comment:2 by Tim Kosse, 15 years ago

Status: newmoreinfo

Actually proper English is always British, American is just a bastardised dialect of English. ;)
The SFTP support in FileZilla is based on PuTTY, which has been created by a team from Cambridge.

Can you please attach a log with debug level 3 to three in the settings dialog?

Also, please try the latest development snapshot of psftp from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

comment:3 by Alexander Schuch, 12 years ago

Resolution: outdated
Status: moreinfoclosed

No reply for more than 28 days.

comment:4 by fil, 12 years ago

Resolution: outdated
Status: closedreopened

I have the same problem and found this bug report.
Here is a log with debug level 3 with similar symptoms:

Statut :	Connexion à XXXXX.XXXXXXX.fr...
Suivi :	Going to execute /usr/bin/fzsftp
Réponse :	fzSftp started
Suivi :	CSftpControlSocket::ConnectParseResponse(fzSftp started)
Suivi :	CSftpControlSocket::SendNextCommand()
Suivi :	CSftpControlSocket::ConnectSend()
Commande :	open "LLLLLLL@XXXXX.XXXXXXXX.fr" 22
Suivi :	Server version: SSH-2.0-OpenSSH_5.5p1 Debian-6+squeeze2
Suivi :	Using SSH protocol version 2
Suivi :	We claim version: SSH-2.0-PuTTY_Local:_Jun_29_2012_14:42:28
Suivi :	Doing Diffie-Hellman group exchange
Suivi :	Doing Diffie-Hellman key exchange with hash SHA-256
Suivi :	Host key fingerprint is:
Suivi :	ssh-rsa 2048 73:c5:5c:72:8e:9d:e0:c1:b4:77:6f:88:45:c2:c6:42
Suivi :	Initialised AES-256 SDCTR client->server encryption
Suivi :	Initialised HMAC-SHA1 client->server MAC algorithm
Suivi :	Initialised AES-256 SDCTR server->client encryption
Suivi :	Initialised HMAC-SHA1 server->client MAC algorithm
Suivi :	Pageant is running. Requesting keys.
Suivi :	Pageant has 0 SSH-2 keys
Commande :	Pass: *************
Suivi :	Sent password
Suivi :	Access granted
Suivi :	Opened channel for session
Suivi :	Started a shell/command
Statut :	Connected to XXXXXXX.XXXXXXXXXX.fr
Suivi :	Server exited on signal "PIPE"
Erreur :	Connection closed by server with exitcode 141
Suivi :	CSftpControlSocket::ResetOperation(66)
Suivi :	CControlSocket::ResetOperation(66)
Erreur :	Impossible d'établir une connexion au serveur

comment:5 by Aaron Brooks, 11 years ago

I would also like this to be fixed.

Status:	Connecting to vps.brooksaar.com:xxxx...
Trace:	Going to execute "C:\Program Files (x86)\FileZilla FTP Client\fzsftp.exe"
Response:	fzSftp started
Trace:	CSftpControlSocket::ConnectParseResponse(fzSftp started)
Trace:	CSftpControlSocket::SendNextCommand()
Trace:	CSftpControlSocket::ConnectSend()
Command:	open "apache@vps.brooksaar.com" xxxx
Trace:	Looking up host "vps.brooksaar.com"
Trace:	Connecting to 103.4.17.189 port xxxx
Trace:	Server version: SSH-2.0-OpenSSH_5.3
Trace:	Using SSH protocol version 2
Trace:	We claim version: SSH-2.0-PuTTY_Local:_Jun_18_2013_22:07:57
Trace:	Doing Diffie-Hellman group exchange
Trace:	Doing Diffie-Hellman key exchange with hash SHA-256
Trace:	Host key fingerprint is:
Trace:	ssh-rsa 2048 e7:17:60:e9:ff:9a:ae:f4:5e:16:d3:c9:82:74:ca:34
Trace:	Initialised AES-256 SDCTR client->server encryption
Trace:	Initialised HMAC-SHA1 client->server MAC algorithm
Trace:	Initialised AES-256 SDCTR server->client encryption
Trace:	Initialised HMAC-SHA1 server->client MAC algorithm
Trace:	Pageant is running. Requesting keys.
Trace:	Pageant has 1 SSH-2 keys
Trace:	Trying Pageant key #0
Trace:	Sending Pageant's response
Trace:	Access granted
Trace:	Opened channel for session
Trace:	Started a shell/command
Trace:	Server sent command exit status 1
Error:	Connection closed by server with exitcode 1
Trace:	CSftpControlSocket::ResetOperation(66)
Trace:	CControlSocket::ResetOperation(66)
Error:	Could not connect to server
Status:	Waiting to retry...
Status:	Delaying connection for 1 second due to previously failed connection attempt...
Status:	Connecting to vps.brooksaar.com:xxxx...
Trace:	Going to execute "C:\Program Files (x86)\FileZilla FTP Client\fzsftp.exe"
Response:	fzSftp started
Trace:	CSftpControlSocket::ConnectParseResponse(fzSftp started)
Trace:	CSftpControlSocket::SendNextCommand()
Trace:	CSftpControlSocket::ConnectSend()
Command:	open "apache@vps.brooksaar.com" xxxx
Trace:	Looking up host "vps.brooksaar.com"
Trace:	Connecting to 103.4.17.189 port xxxx
Trace:	Server version: SSH-2.0-OpenSSH_5.3
Trace:	Using SSH protocol version 2
Trace:	We claim version: SSH-2.0-PuTTY_Local:_Jun_18_2013_22:07:57
Trace:	Doing Diffie-Hellman group exchange
Trace:	Doing Diffie-Hellman key exchange with hash SHA-256
Trace:	Host key fingerprint is:
Trace:	ssh-rsa 2048 e7:17:60:e9:ff:9a:ae:f4:5e:16:d3:c9:82:74:ca:34
Trace:	Initialised AES-256 SDCTR client->server encryption
Trace:	Initialised HMAC-SHA1 client->server MAC algorithm
Trace:	Initialised AES-256 SDCTR server->client encryption
Trace:	Initialised HMAC-SHA1 server->client MAC algorithm
Trace:	Pageant is running. Requesting keys.
Trace:	Pageant has 1 SSH-2 keys
Trace:	Trying Pageant key #0
Trace:	Sending Pageant's response
Trace:	Access granted
Trace:	Opened channel for session
Trace:	Started a shell/command
Trace:	Server sent command exit status 1
Error:	Connection closed by server with exitcode 1
Trace:	CSftpControlSocket::ResetOperation(66)
Trace:	CControlSocket::ResetOperation(66)
Error:	Could not connect to server
Last edited 3 years ago by Aaron Brooks (previous) (diff)

by Slavon, 9 years ago

Attachment: blue1.jpg added

by Slavon, 9 years ago

Attachment: Bob Foster.png added

Find here espresso kitchens for your kids.

Note: See TracTickets for help on using tickets.