Mohammedz.com

For Linux and Shell scripting.

sftp/scp connection fails, but ssh is OK.

Leave a comment


sftp/scp may fail at connection time if you have shell initialization
(.profile, .bashrc, .cshrc,etc) which produces output for non-interactive
sessions. This output confuses the sftp/scp client. You can verify if your shell is doing this by executing:

ssh yourhost /usr/bin/true

If the above command produces any output, then you need to modify your shell initialization.

~mohammed

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s