Re: WinSCP use on Nyx.net?
If it's not merely a coincidence, what can I do about it? What script is involved? How can the script be kept from executing?
Administrators of the server should know :-) If you find it out, let us know.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
If it's not merely a coincidence, what can I do about it? What script is involved? How can the script be kept from executing?
I am having trouble logging on to Nyx1 using WinSCP, although I have
no problem logging on to Nyx1 using WS_FTP. I suspect that the
problem is at Nyx.
When I try to log on to Nyx1, WinSCP displays the following error
message:
QUOTE
Cannot initialize SFTP protocol. Is the host running a SFTP server?
Received too large (1131770482 B) SFTP packet. Max supported packet
size is 102400 B.
The error is typically caused by message printed from startup script
(like .profile). The message may start with "Curr".
ENDQUOTE
A WinSCP support board reader pointed my way to the following in
WinSCP's documentation.
QUOTE
[Regarding] Received too large (??? B) SFTP packet. Max supported
packet size is 102400 B"
If ??? (from the subject) is very large number then the problem is
typically caused by a message printed from some profile/logon script.
It violates the SFTP protocol.[!!!!!] Some of these scripts are
executed even for non-interactive (no TTY) sessions, so they cannot
print anything (nor ask user to type something).
The number ??? represents the first four bytes read from the server.
In such case it is typicaly the first four characters of the message.
You can usually see the full message if you login to your account
using SSH terminal.
To fix the problem find out what command in what script does print the
message. Once you find it move the command to proper script or remove
it at all. The scripts are usually hidden (their name starts with dot)
and are located in your home directory on the server.
There are other possible sources of the message in addition to the
profile script. Some SSH servers for example prints message in case of
fatal error (for example when they are unable to start SFTP server).
You need to contact your server administrator.
END QUOTE
Part of the error message I get when I try to logon to Nyx1 using
WinSCP is:
QUOTE
Received too large (1131770482 B) SFTP packet. Max supported packet
size is 102400 B.
The error is typically caused by message printed from startup script
(like .profile). The message may start with "Curr".
ENDQUOTE
I calculated that:
1131770482 (base 10) = 43757272 (hex)
A hex to ASCII table showed that:
43 75 72 72 (hex) yields "C u r r" (ASCII w/o quotes)
Which is what WinSCP said in its error message.
Nyx's telnet(!) log on greeting after Nyx accepts a user's password
includes this line (without quotes):
"Current system time is: Thu Aug 25 11:40:22 MDT 2005"
I suspect that this is a clue to why I can't use WinSCP to log on to
Nyx1? Is there anything that I or Nyx can do to make WinSCP and Nyx1
compatible?
If it's not merely a coincidence, what can I do about it? What script
is involved? How can the script be kept from executing?
Received too large (1131770482 B) SFTP packet. Max supported packet size is 102400 B.
The error is typically caused by message printed from startup script (like .profile). The message may start with "Curr".