0
I regularly use WinSCP to tranfer a few files to my personal server. However I recently experienced the infamous "bad packet length" error due to one of my echo statements residing inside the .bashrc file. Therefore with respect to this: sftp corruption error I would like to ask the following:
Why did the system complained for an echo statement (or whatever is causing the error) residing within my .bashrc file and not my .bash_profile instead?
..if the sftp is some sort of subprocess spawned by the ssh server as the above link suggests, shouldn't it first parse the .bash_profile file and complain about its own echo statements?
Thanks in advance
Shouldn't WinSCP create a non-login non-interactive shell instead? I can't see how a session is considered interactive without a shell... – kstratis – 2012-07-14T23:59:24.843
1One could argue that, but it all depends on how WinSCP uses the SSH protocol. – Fran – 2012-07-15T00:01:17.327