In order for this to work, the SSH session must be "clean" — that is, it must have on it only information transmitted by the programs at either end. What often happens, though, is that there are statements in either the system or per-user shell startup files on the server (.bashrc, .profile, /etc/csh.cshrc, .login, etc.) which output text messages on login, intended to be read by humans (like fortune, echo "Hi there!", etc.). Such code should only produce output on interactive logins, when there is a tty attached to standard input. If it does not make this test, it will insert these text messages where they don't belong: in this case, polluting the protocol stream between scp2/sftp and sftp-server. The first four bytes of the text gets interpreted as a 32-bit packet length, which will usually be a wildly large number, provoking the error message above. Notice that:
1416586337 decimal = 546F6461 hex = "Toda" ASCII
suggesting a string beginning "Today..." (or maybe "Thank-you" in transliterated Hebrew).
Ce qui m'a mis sur la piste c'est:
ssh server -s -oForwardX11=no -oForwardAgent=no -oProtocol=2 sftp
et dans mon fichier /etc/ssh/ssh_config mes deux lignes ForwardX11=yes ForwardAgent=yes Remplacées par no et tout baigne...
ca c'est typiquement un probleme de fichier d'initialisation shell qui ecrit sur la console ( .bashrc , .cshrc ....)
Juste!
Est-ce que quelqu'un peut-il m'aider?
Merci pour l'aide apportée!
Alain -- Alain Chappuis (Remove: pouriel to answer me in my address!) (Enlevez: pouriel de mon adresse pour me répondre!)
Alain Chappuis wrote:
Bonjour,
J'ai un problème de connection sur mes serveurs Linux SuSE!
Je tente une connection: sftp chappuis@cmulnx3 et j'obtiens la
réponse suivante:
Connecting to cmulnx3...
Received message too long 1114203502
In order for this to work, the SSH session must be "clean" — that is, it must
have on it only information transmitted by the programs at either end. What
often happens, though, is that there are statements in either the system or
per-user shell startup files on the server (.bashrc, .profile, /etc/csh.cshrc,
.login, etc.) which output text messages on login, intended to be read by humans
(like fortune, echo "Hi there!", etc.). Such code should only produce output on
interactive logins, when there is a tty attached to standard input. If it does
not make this test, it will insert these text messages where they don't belong:
in this case, polluting the protocol stream between scp2/sftp and sftp-server.
The first four bytes of the text gets interpreted as a 32-bit packet length,
which will usually be a wildly large number, provoking the error message above.
Notice that:
1416586337 decimal = 546F6461 hex = "Toda" ASCII
suggesting a string beginning "Today..." (or maybe "Thank-you" in transliterated
Hebrew).
Ce qui m'a mis sur la piste c'est:
ssh server -s -oForwardX11=no -oForwardAgent=no -oProtocol=2 sftp
et dans mon fichier /etc/ssh/ssh_config mes deux lignes
ForwardX11=yes
ForwardAgent=yes
Remplacées par no et tout baigne...
ca c'est typiquement un probleme de fichier d'initialisation shell
qui ecrit sur la console ( .bashrc , .cshrc ....)
Juste!
Est-ce que quelqu'un peut-il m'aider?
Merci pour l'aide apportée!
Alain
--
Alain Chappuis (Remove: pouriel to answer me in my address!)
(Enlevez: pouriel de mon adresse pour me répondre!)
In order for this to work, the SSH session must be "clean" — that is, it must have on it only information transmitted by the programs at either end. What often happens, though, is that there are statements in either the system or per-user shell startup files on the server (.bashrc, .profile, /etc/csh.cshrc, .login, etc.) which output text messages on login, intended to be read by humans (like fortune, echo "Hi there!", etc.). Such code should only produce output on interactive logins, when there is a tty attached to standard input. If it does not make this test, it will insert these text messages where they don't belong: in this case, polluting the protocol stream between scp2/sftp and sftp-server. The first four bytes of the text gets interpreted as a 32-bit packet length, which will usually be a wildly large number, provoking the error message above. Notice that:
1416586337 decimal = 546F6461 hex = "Toda" ASCII
suggesting a string beginning "Today..." (or maybe "Thank-you" in transliterated Hebrew).
Ce qui m'a mis sur la piste c'est:
ssh server -s -oForwardX11=no -oForwardAgent=no -oProtocol=2 sftp
et dans mon fichier /etc/ssh/ssh_config mes deux lignes ForwardX11=yes ForwardAgent=yes Remplacées par no et tout baigne...
ca c'est typiquement un probleme de fichier d'initialisation shell qui ecrit sur la console ( .bashrc , .cshrc ....)
Juste!
Est-ce que quelqu'un peut-il m'aider?
Merci pour l'aide apportée!
Alain -- Alain Chappuis (Remove: pouriel to answer me in my address!) (Enlevez: pouriel de mon adresse pour me répondre!)