LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-12-2003, 03:24 AM   #1
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 55
ssh problems


I usually get to the RH7.1 machine at the university using ssh from other computers.

It went everything ok till today. I was using a win2000, I executed ssh and managed to see the console but when I tryed to open the file transfer window it gave me the following error:

Exit value 0 was returned. Most likely the sftp-server is not in the path of the user on the server-side.

Does that mean that there is an executable called sftp-server that I have to add to my user PATH?. Did I somehow delete it, or can it be a different error? Sorry, I don`t know so much about networks.

One other application called putty works fine but I don't know why doesn't work with ssh.

any idea?
 
Old 06-12-2003, 03:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
if you have a look in /etc/ssh/sshd_config (or a similar location) you should have a variable sftp-server set to the location of the binary, check that exists...
 
Old 06-12-2003, 04:00 AM   #3
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434

Original Poster
Blog Entries: 1

Rep: Reputation: 55
well, I think there isn't any sftp-server variable or similar, pointed to /usr/libexec/openssh/sftp-server (this is the binary isn't it?). the only thing I can find is this line in sshd_config (I don't know what does it mean):

Subsystem sftp /usr/libexec/openssh/sftp-server

should I add a variable called sftp-server pointed to the binary?
 
Old 06-12-2003, 04:20 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
well that was the one i meant.... what if you just run that executable locally?
 
Old 06-12-2003, 05:21 AM   #5
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434

Original Poster
Blog Entries: 1

Rep: Reputation: 55
If I execute sftp-server I get this:

> /usr/libexec/openssh/sftp-server &
[6] 7209
> ps -x
PID TTY STAT TIME COMMAND
7143 pts/0 S 0:00 -bash
7209 pts/0 T 0:00 /usr/libexec/openssh/sftp-server
7212 pts/0 R 0:00 ps -x

[6]+ Stopped /usr/libexec/openssh/sftp-server

aargh, it was workin well till today. any other idea?

btw, thanks for your time.
 
Old 06-07-2004, 07:04 AM   #6
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Rep: Reputation: 15
ssh is causing me some trouble too

I have that same problem on a few machine from some time now.

on one, sftp never worked. on another, sftp worked once, then the machine was rebooted and it desn't work aynmore. on a third, it worked straight away and still does.

on either, when running the exec locally, I get no error. sftp-server is started, but the problem is still the same.

on the first machine (where sftp never worked), I get a slightly different window requesting my password , but once the password is given there's another dialog saying "enter your authentication response", to which you can say either yes or no. this isn't much of a problem, but it bores me (so if you have a clue, oh yes please tell me)

argh, I whish I had some kind of error... (don't we always do)
 
Old 06-07-2004, 10:06 AM   #7
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Rep: Reputation: 15
THE ANSWER

I have found the answer!!

by luck I must say, I wasn't looking for it anymore

Quote:
A common mistake which can cause such a crash is that the server prints some text in its login script. This will be printed in an SFTP session too, and will confuse PUTTY because it expects special connection bytes.
it could be true for ssh too...

.
.
.
.
.
.
.
.

I just checked. It is true.

have a nice day
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with SSH paul.nel Linux - Networking 17 08-09-2011 01:40 AM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
SSH problems newbie21209 Linux - Networking 10 06-17-2005 12:01 AM
problems with SSH hostprotect Linux - Software 2 01-11-2005 06:15 PM
SSH problems (but only one way) blueares Linux - General 3 10-21-2004 01:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration