Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh/sftp error?!?
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
plac3bo
n00b
n00b


Joined: 04 Dec 2003
Posts: 32
Location: Philly, USA

PostPosted: Mon Apr 12, 2004 10:33 pm    Post subject: ssh/sftp error?!? Reply with quote

Ok, I've been using linux for a while now, and gentoo for about 6 months and am still trying to learn everything. Anyway, I recently ran into a new problem that is just eating me up and I cannot find any information related to my error message anywhere(i've tried these forums and googling but nothing).

The problem is after I have established a ssh connection to my gentoo server, and then try to make a secure file transfer. Here are all the details: I'm using a windows xp box and SSH client (ssh.org) and I'm trying use the file transfer by clicking the yellow folder icon. But I'm recieving this error message:

Code:
File transfer server could not be started or exited unexpectedly.  Exit value 0 was returned.  Most likely the sftp-server is not in the path of the user on the server-side.


Other information: This problem JUST popped up, it had been working fine for the previous 6 months. Also, I have 2 gentoo boxes, and I first started getting the error on one box about 2 weeks ago and it is now happening on the other box also. And yes, sftp IS in my path. I have no log file for sshd. And I don't know where else to look.

I do realize that it may not be related to gentoo at all and is probably the fault of my ssh client, but I was still hoping that some one may be able to shed some light. Thanks.

Please help


Last edited by plac3bo on Tue Apr 13, 2004 8:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Mon Apr 12, 2004 10:56 pm    Post subject: Reply with quote

Check your /etc/ssh/sshd_config file.

Do you have an entry for:
Code:
Subsystem   sftp    /usr/lib/misc/sftp-server
or something similar...

Also, Are there any messages output in your linux logs when you try this, and it fails ?
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
plac3bo
n00b
n00b


Joined: 04 Dec 2003
Posts: 32
Location: Philly, USA

PostPosted: Tue Apr 13, 2004 12:50 am    Post subject: Reply with quote

Thanks for quick reply.

Yes, I do have the line:
Code:
Subsystem   sftp    /usr/lib/misc/sftp-server

in my /etc/ssh/sshd_config.

After I try sftp and get error, this shows up in my /var/log/messages:
Code:
Apr 12 19:44:21 myhostname sshd[18097]: subsystem request for sftp

and thats it.

Like I said above, everything worked fine for months, and I don't think I change anything.
Back to top
View user's profile Send private message
plac3bo
n00b
n00b


Joined: 04 Dec 2003
Posts: 32
Location: Philly, USA

PostPosted: Tue Apr 13, 2004 8:39 pm    Post subject: Reply with quote

I'm still banging my head against a wall trying to figure this one out and I'm a step closer now. With a other gentoo users, every works under the same conditions as was failing before. This leads me to believe that the problem/error I'm having is specific to my users config settings. . .

WAIT!!!

While writing this I just realized the problem. At the end of my .bashrc I put /usr/bin/uptime so I could see the server uptime every time I logged in. Removing this command brings everything back to a normal working state. Well, its fixed now, but I still don't know why running that command caused this error. Oh well.

Thanks for the help
Back to top
View user's profile Send private message
plac3bo
n00b
n00b


Joined: 04 Dec 2003
Posts: 32
Location: Philly, USA

PostPosted: Tue Apr 13, 2004 8:45 pm    Post subject: Reply with quote

Moving the /usr/bin/uptime command to my .bash_profile resolves the problem and I can still see my uptime : )
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