Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-02-2004, 08:06 AM
|
#1
|
Member
Registered: Apr 2003
Distribution: RH 8
Posts: 246
Rep:
|
sftp-server
can someone help me out?
I am running ssh, trying to connect to do sftp.
1. i have the sshd_config file uncommented in the line:
Subsystem sftp /usr/libexec/openssh/sftp-server
2. I am trying to connect from my windows box using a sftp (from sourceforge) client, which says this after I login with my user and pwd:
Unable to connect:
Received too large (1852139884 B) SFTP packet. Max supported packet size is 102400 B.
|
|
|
01-02-2004, 08:50 PM
|
#2
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
What client are you using? Does your client do "scp/sftp over ssh" or "ftp over ssl/tls"? They're similar file transfers, but use two different sets of ports?
|
|
|
01-03-2004, 02:48 AM
|
#4
|
Member
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381
Rep:
|
A most excellent client can be found here. It is called WinSCP, but it also supports SFTP:
http://winscp.sourceforge.net/eng/
|
|
|
01-03-2004, 04:20 PM
|
#5
|
Member
Registered: Apr 2003
Distribution: RH 8
Posts: 246
Original Poster
Rep:
|
Yes Paul, I am using that program. Got it off sourceforge the other day. Dont know why it wont work though.
I am using a non standard ssh port though, could that be the problem?
|
|
|
01-05-2004, 04:22 AM
|
#6
|
Member
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381
Rep:
|
Yeh, this will probably be the exact problem. WinSCP has the option to change the port though when you enter your login details. Try that.
|
|
|
01-05-2004, 07:54 AM
|
#7
|
Member
Registered: Apr 2003
Distribution: RH 8
Posts: 246
Original Poster
Rep:
|
I did connect and got everything working, but im confused. In winSCP, i chose the protocol "SCP"
I was trying to use "SFTP" protocol, shouldnt SFTP work also?
thanks
Last edited by sopiaz57; 01-05-2004 at 08:24 AM.
|
|
|
01-05-2004, 08:55 AM
|
#8
|
Member
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381
Rep:
|
Yes they should both work. When I did an out of the box install if RH8 i didnt have to do any special configuration to get SCP and SFTP working so I dont understand why you are having this problem.
It maybe that your paths for the
Subsystem sftp /usr/libexec/openssh/sftp-server
entry are wrong. My RH8 installation does not have /usr/libexec/openssh/sftp-server but has /usr/bin/sftp. Try commenting the line that you uncommented again as it maybe conflicting with the default config. Then tell me your findings...
|
|
|
01-05-2004, 09:08 AM
|
#9
|
Member
Registered: Apr 2003
Distribution: RH 8
Posts: 246
Original Poster
Rep:
|
Is one of the protocols better than the other?
SCP VS SFTP?
------------------
My binary and the sshd config file seem to match:
Subsystem sftp /usr/libexec/openssh/sftp-server
locate sftp-server = /usr/libexec/openssh/sftp-server
Quote:
My RH8 installation does not have /usr/libexec/openssh/sftp-server but has /usr/bin/sftp
|
this is because the sftp binary is the client program.
|
|
|
01-05-2004, 09:42 AM
|
#10
|
Member
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381
Rep:
|
Quote:
My RH8 installation does not have /usr/libexec/openssh/sftp-server but has /usr/bin/sftp
|
My mistake, i do have /usr/libexec/openssh/sftp-server
Try commenting the sftp-server line out and see if it works.
As for SCP vs. SFTP: http://www.linuxquestions.org/questi...003/07/2/70685
|
|
|
01-05-2004, 10:34 AM
|
#11
|
Member
Registered: Apr 2003
Distribution: RH 8
Posts: 246
Original Poster
Rep:
|
commented the line out, says this when i try to connect via "SFTP":
Cannont initialize SFTP protocol. Is the host running a sftp server?
Received too large (1852139884 B) SFTP packet. Max supported packet size is 102400 B.
When i choose , SFTP (allow SCP fallback) it works , naturally because SCP still works.
Thank you for your help
|
|
|
All times are GMT -5. The time now is 08:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|