Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] openssh / sftp-server problem ...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ZW
n00b
n00b


Joined: 16 Jan 2008
Posts: 4

PostPosted: Wed Jan 16, 2008 8:38 pm    Post subject: [SOLVED] openssh / sftp-server problem ... Reply with quote

Hi,

I'm trying to upload some files using SFTP. However my SFTP-client tells me that my upload failed and there is an empty file created in my uploadfolder. Downloading works fine.

In my /var/log/messages I find the following:

Code:

Jan 16 21:36:22 myserver sftp-server[3385]: error: process_write: write failed
Jan 16 21:36:22 myserver sftp-server[3385]: error: process_write: write failed
Jan 16 21:36:22 myserver sftp-server[3385]: error: process_write: write failed


Last edited by ZW on Fri Jan 18, 2008 8:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
mwspitzer
n00b
n00b


Joined: 21 Nov 2006
Posts: 38

PostPosted: Wed Jan 16, 2008 9:24 pm    Post subject: Reply with quote

Have you verified that you have write permissions to the directory you're uploading to? Try uploading something to /tmp. That should be 777.

Mike
Back to top
View user's profile Send private message
ZW
n00b
n00b


Joined: 16 Jan 2008
Posts: 4

PostPosted: Thu Jan 17, 2008 5:40 am    Post subject: Reply with quote

mwspitzer wrote:
Have you verified that you have write permissions to the directory you're uploading to? Try uploading something to /tmp. That should be 777.

Mike


Yes, I tested it with the home-directory of my user and with /tmp. Both times the upload fails.
Back to top
View user's profile Send private message
manaka
Apprentice
Apprentice


Joined: 23 Jul 2007
Posts: 178
Location: Spain

PostPosted: Thu Jan 17, 2008 8:04 pm    Post subject: Reply with quote

Try increasing the log verbosity of the sftp-server subsystem. Adding this line to /etc/ssh/sshd_config would set a DEBUG loglevel.

Subsystem sftp /usr/lib/misc/sftp-server -l DEBUG

This should help you to find the problem.
_________________
Javier Miqueleiz

"Listen to your heart. It knows all things, because it came from the Soul of the World, and it will one day return there."
Back to top
View user's profile Send private message
ZW
n00b
n00b


Joined: 16 Jan 2008
Posts: 4

PostPosted: Thu Jan 17, 2008 9:09 pm    Post subject: Reply with quote

manaka wrote:
Try increasing the log verbosity of the sftp-server subsystem. Adding this line to /etc/ssh/sshd_config would set a DEBUG loglevel.

Subsystem sftp /usr/lib/misc/sftp-server -l DEBUG

This should help you to find the problem.


I'm still getting the same messages in my logs...

Code:

Jan 17 22:04:40 myserver sshd[27838]: subsystem request for sftp
Jan 17 22:05:31 myserver sftp-server[27839]: error: process_write: write failed
Jan 17 22:05:31 myserver sftp-server[27839]: error: process_write: write failed
Jan 17 22:05:31 myserver sftp-server[27839]: error: process_write: write failed


And that's all :-(
Back to top
View user's profile Send private message
infinite1der
n00b
n00b


Joined: 31 Jan 2006
Posts: 52
Location: Atlanta, GA

PostPosted: Thu Jan 17, 2008 11:01 pm    Post subject: Reply with quote

Does SCP work?

Can you strace the process on the server side to watch what happens?
_________________
----------------------
James A. Thornton
Atlanta, GA

How To Ask Questions the Smart Way
Back to top
View user's profile Send private message
ZW
n00b
n00b


Joined: 16 Jan 2008
Posts: 4

PostPosted: Fri Jan 18, 2008 8:27 pm    Post subject: Reply with quote

infinite1der wrote:
Does SCP work?

Can you strace the process on the server side to watch what happens?


I found my problem:

No problem with processes, libraries, etc...

I simply ran out of space... :lol: :oops: :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum