Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
2  
Post your sshd_config and the relevant entries from your logs. –  joschi May 10 '10 at 10:00

3 Answers 3

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

 
discard

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.