Friday, May 20, 2011

sftp, sshfs fail while ssh works well

sftp and sshfs may fail when trying to connect the remote server if there are shell initialization (.profile, .bashrc, .cshrc, etc) which produces output for non-interactive sessions. This can be verified by entering

ssh host /usr/bin/true

On my machine, I got the following output:

LD_LIBRARY_PATH: Undefined variable.
/usr/bin/true: Command not found.

After commenting out the defination of LD_LIBRARY_PATH in the ~/.cshrc on host, everything is working well.

No comments:

Post a Comment