Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm receiving the following error when trying to connect via Cyberduck SFTP to an Ubuntu 9.10 server that I am able to successfully ssh into:

[main] ERROR ch.cyberduck.core.sftp.SFTPSession - Connection attempt canceled

I have other Ubuntu servers that I am able to successfully SSH into and Cyberduck is able to SFTP into. I've reviewed /etc/ssh/sshd_config and am now at a loss as to what else to check.

share|improve this question
up vote 3 down vote accepted

If your .bashrc or shell login is producing output sftp or scp will fail: FAQ. Try issuing a remote command via ssh:

ssh /bin/true

If the above spits out any text, you need to fix the offending text generator in the cookiemonster account's login scripts. No fortune cookies upon login for sftp. ;(

share|improve this answer
I should have asked this question much earlier and saved myself quite a bit of time. I modified .bashrc to eliminate any text spit out and Cyberduck works beautifully. Many Thanks. – Matthew Rankin Mar 2 '10 at 3:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.