This was working well until a couple of days ago. I can't recall having done anything to the server leading it to start closing the connection. Also I have no idea what exitcode 128 means, and can't find anything about it. Here's FileZilla's response to the connection attempt
Status: Connecting to foo.bar.no... Response: fzSftp started Command: open "[email protected]" 22 Command: Pass: ******* Status: Connected to foo.bar.no Error: Connection closed by server with exitcode 128 Error: Could not connect to server
Trying to connect with WinSCP also tells me the server closed the connection with error code 128 and additionally tells me:
Cannot initialize SFTP protocol. Is the host running a SFTP server?
I can SSH connect to the server no problem using PuTTY. Any ideas?
It might be an invalid .bashrc file. In my case I found it was referencing another recently deleted script, and so failed.
According to this site: http://forum.filezilla-project.org/viewtopic.php?f=2&t=17604, the problem is a bad username/password combination.
I had the same problem with one domain on my linux RHEL server. (My server requires ssh for security reasons.) I tried changing login and password and everything else.
What finally fixed it was in my WHM control panel, I disabled Shell Fork Bomb Protection. This feature limits ftp connections if there is a lot of traffic on the domain. When I disabled this, the ftp started working immediately and has worked ever since.
It has nothing to do with Filezilla or SCP setup. It is a matter or resources.
See http://docs.cpanel.net/twiki/bin/view/11_30/WHMDocs/ShellFork
Since it was working before, have you tried restarting the service? Another thing that you may want to try is using passive mode for your connection. Also, try either resetting the password or creating a new user account (your current account may be locked).
Looks like a permissions issue to me. Can your user account access whatever ftp folder your configured to access at login time? Do both you and root (or whatever account is running the ftp/ssh services) have access to your home directory and/or custom ftp directory?
If you are using ssh and scponlyc (chrooted), then you'll need to add the following line to
/etc/ssh/sshd_config
:ForceCommand internal-sftp
man sshd_config