EDIT3: The problem below solved. It was due to a stupid mistake from my end. I got a funny idea of having a different fortune printed each time I log in, so I added a script under /etc/profile.d that prints a fortune at login.
However, sftp and scp aren't expecting to see a fortune after a successful login...
Hello, fellow Fedorans.
I have a problem with accessing my box from the outside world with both sftp and scp.
This is what I get:
Code:
scp: warning: ssh_packet_wrapper_input: invalid packet received: len 1113941619 closing the offending input channel.
Ssh'ing to my box works perfectly. Also the /var/log/secure on my box shows a session being opened and the subsystem request for sftp being made. No errors seem to be present in the logs. The connection is terminated with above message right after I give the password. Only the indicated packet length seems to vary.
Could someone help me out here?
EDIT: As a side note, for a second I was thinking that someone is trying to eavesdrop on the wire (you know, man-in-the-middle), but soon abandoned such worries as ssh'ing works perfectly.
EDIT2: The above message appears on a unix box, from which I tried accessing my box. However, when I tried sftp'ing to localhost on my box, I got this:
Code:
Received message too long 1164731747
I'm totally confused here.