LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ssh (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-211484/)

statmobile 08-01-2004 03:16 PM

Try to check this out, type:

cat /etc/ssh/sshd_config | grep Subsystem

It should read:

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

If the line is commented out with a # in front of it, then open the file (/etc/ssh/sshd_config) up with a text editor remove the #, then save it.

I forget how to restart all the daemons, so I would just reboot after that. Let me know how this turns out.

statmobile 08-01-2004 03:19 PM

I should say that the output could be slightly different, the key is whether or not the line is commented out. The config file probably knows exactly where the sftp binary is.

lyar1031 08-01-2004 03:28 PM

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

This LINE is not commented out in the sshd_config file

What are the permissions supposed to be on the file sftp-server.
this file is owned by "root" and belongs to group "root" Is this a problem?

lyar1031 08-01-2004 05:00 PM

The above posts show that I am trying to ftp from my XP box to Redhat box using psftp and it is hanging up when I enter the passwrod

OK I did this from my redhad box I type sftp 192.168.1.114

after the login sequence it asks for the password, when I type the password it says
"received message too long 538976288"

statmobile 08-01-2004 09:04 PM

Sorry lyar, but I had a party to go to, and I'm a little busy for the rest of the evening. I did find this, and I think this may be the problem. It may be a difference in the protocols, whether you're using ssh1 or ssh2. Here, check out the faq for openSSH
http://www.snailbook.com/faq/
Sorry, but I was almost sure that the other post was the solution. This faq specifically talks about the response you are getting.

micxz 08-01-2004 10:22 PM

Try scp instead of sftp ?

lyar1031 08-02-2004 10:30 AM

Hope the party was all-right...

I will try all the suggestions I get, but thanks for all the help w/ this

statmobile 08-02-2004 06:32 PM

What's the news on this, did that page help at all?

lyar1031 08-02-2004 06:36 PM

Actually I am about to read it....I read part of the link at work today, but I am about to try it...

Thanks

statmobile 08-02-2004 06:41 PM

If it isn't a problem between the ssh2 and ssh1 protocol, then I'll have to look into that some more. Problem is that I'm in the middle of working on a new installation, so I don't have much time.

lyar1031 08-02-2004 08:14 PM

Have not tried this yet...

could be an incompatibility issue as mentioned. I am going to get the latest OpenSSH for my windows box.

I need to verify which version of ssh I have on my Linux box. Don;t know how to do this quite yet...

I thought there was an rpm command something like

"rpm -a ssh" which should tell me which rpm I have

lyar1031 08-02-2004 09:21 PM

"File transfer could not be started or exited unexpectedly. sftp-server is not in the path on the server side"


In reference to the statement above from Openssh, it seems like that sftp-server IS NOT in the path when I log in as myself so

since /usr/local/bin is in the path (.bash_profile) then I copied the file sftp-server to /usr/local/bin/

Still did not work...the same error occurred!

Thanks for all the help again

lyar1031 08-02-2004 09:58 PM

put "/usr/libexec/openssh/ in the path...None worked still the same error

However, look at this link:

http://www.linuxquestions.org/questi...highlight=sftp

it is the same problem that I have. Furthermore in the link that "statmobile" sent http://www.snailbook.com/faq/

the same problem is mentioned in the section that talks about "received message too long"

The article states that server puts some text in the login script. However, I do not know how to modify the login script to eliminate this problem

Thanks

micxz 08-02-2004 10:08 PM

Quote:

Originally posted by lyar1031
I need to verify which version of ssh I have on my Linux box. Don;t know how to do this quite yet...
I thought there was an rpm command something like
"rpm -a ssh" which should tell me which rpm I have

-qa will list every package,then just grep for ssh.

rpm -qa | grep ssh

statmobile 08-09-2004 06:20 PM

Hey lyar, any I just read your post. For some reason I was unsubscribed from the discussion. Have you gotten it up and working yet?

I just came accross something on the net, and I wanted to relay it to you. It looks like the post you just referred to is discussing the problem as well:
http://www.openssh.org/faq.html#2.9

as for figuring out which protocol your server is running, I believe you can find it in the
/etc/ssh/sshd_config
file. Maybe it will say here whether or not you block the SSH1 protocol.


All times are GMT -5. The time now is 10:53 AM.