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've got a VPS running Ubuntu 9.10 and I cannot sftp to the server with a regular account. I can ssh with a regular account and I can also ssh and sftp with root. Is there an option that I need to turn on so that regular users can use sftp? Thanks in advance, J.

share|improve this question
Post your sshd_config and the relevant entries from your logs. – joschi May 10 '10 at 10:00
up vote 1 down vote accepted

It seems the problem was caused by wrong permissions set for /dev/null: crw-------. Now i only have to figure out why the permissions where set the way they were :)

share|improve this answer

maybe it's because of permissions on 'sftp-server' binary? what does debug run of sshd give you?

share|improve this answer

Another issue that I have noticed, is that if your login startup files generate any sort of output, scp and sftp fail. Be sure you bracket things that output to the terminal in your startup scripting using a test on the variable $?prompt if it is non-zero you talking with a terminal.

share|improve this answer

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.