Received too large (172781415 B) SFTP packet. Max supported packet size is 102400 B.

Advertisement

blackcat
Guest

Received too large (172781415 B) SFTP packet. Max supported packet size is 102400 B.

Hy! SCP working fine, but when I try to connect to the server with sftp, i allways get that message in the subject. How that can be solved? the machine is a Debian GNU/Linux Woody, with openssh and kernel 2.4.24 installed, working properly. :(

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,790
Location:
Prague, Czechia

Re: Received too large (172781415 B) SFTP packet. Max supported packet size is 102400 B.

Are you sure you've typed the number (172781415) correctly?

The problem is typically caused by some message printed from .bashrc or similar script. It violates the SFTP protocol. .bashrc script (and others) is executed even for non-interactive (no TTY) sessions, so thay cannot print anything (not ask user to type something). Such things can be included in .profile script, which should not be executed for non-interactive sessions.

The number 172781415 represents the first four bytes read from the server. In such case it is typicaly the first four characters of the message. However the number you've posted does not represent readable text (or at least readable in latin). Typo?

BTW: I've deleted your duplicate post.
_________________
Martin Prikryl

Reply with quote

Guest

Re: Received too large (172781415 B) SFTP packet. Max supported packet size is 102400 B.

martin wrote:

Are you sure you've typed the number (172781415) correctly?


Hy. This fast support is amazing. the problem was caused by a 'finger' command in the global bashrc file, outside the interactive part. thanx again!

martin wrote:

BTW: I've deleted your duplicate post.

okok. sorry for that, i pressed twice the submit button...

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,790
Location:
Prague, Czechia

Re: Received too large (172781415 B) SFTP packet. Max supported packet size is 102400 B.

Anonymous wrote:

Hy. This fast support is amazing. the problem was caused by a 'finger' command in the global bashrc file, outside the interactive part. thanx again!

OK, I've decoded the number from the wrong end. Now I see that it represents new-line and 3 letters "Log". So it is actually the header of finger table :-)
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum