small fix for login fortunes, etc
When connecting to ssh, I have "fortune" in my .bashrc, which prints a little fortune. However winscp chews on this, because it makes the initial packet(s) too big and complains. Trivial fix is to check the type of terminal through environment variable in script, like:
(putty and openssh emulate xterm, should work for other clients also - try "echo $TERM" to see)
Now winscp works and I get my fortunes in putty and so on. why winscp needs to launch bash at all, I don't know, maybe weirdness in ssh protocol, hah. anyway, hope that helps someone out :D
# Fix for winscp if [ "$TERM" != "dumb" ]; then fortune fi
(putty and openssh emulate xterm, should work for other clients also - try "echo $TERM" to see)
Now winscp works and I get my fortunes in putty and so on. why winscp needs to launch bash at all, I don't know, maybe weirdness in ssh protocol, hah. anyway, hope that helps someone out :D