LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 01-02-2004, 08:06 AM   #1
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
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.
 
Old 01-02-2004, 08:50 PM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
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?
 
Old 01-02-2004, 11:21 PM   #3
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
I've always like PSFTP - The whole suite is sweet.

http://www.chiark.greenend.org.uk/~s.../download.html


--tarballedtux
 
Old 01-03-2004, 02:48 AM   #4
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
A most excellent client can be found here. It is called WinSCP, but it also supports SFTP:

http://winscp.sourceforge.net/eng/
 
Old 01-03-2004, 04:20 PM   #5
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Original Poster
Rep: Reputation: 30
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?
 
Old 01-05-2004, 04:22 AM   #6
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
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.
 
Old 01-05-2004, 07:54 AM   #7
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Original Poster
Rep: Reputation: 30
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.
 
Old 01-05-2004, 08:55 AM   #8
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
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...
 
Old 01-05-2004, 09:08 AM   #9
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Original Poster
Rep: Reputation: 30
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.
 
Old 01-05-2004, 09:42 AM   #10
pnh73
Member
 
Registered: Jul 2003
Location: Birmingham, UK
Distribution: Ubuntu,Debian
Posts: 381

Rep: Reputation: 30
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
 
Old 01-05-2004, 10:34 AM   #11
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Original Poster
Rep: Reputation: 30
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
 
  


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
How do I use sftp to upload my web site? (no sftp tar command) johnMG Linux - Networking 6 06-21-2005 09:14 PM
How to set up sftp server. gordonbanks Fedora 3 10-01-2004 06:06 PM
ssh sftp-server dtaju Linux - Security 5 02-23-2004 04:16 PM
Files truncated by sftp/sftp-server at 65kb gato Linux - Networking 1 12-18-2003 10:29 AM
Please help with sftp-server Jason_25 Linux - Networking 10 03-07-2003 04:29 PM


All times are GMT -5. The time now is 10:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration