Tip
David <[email protected]>
| Newsgroups | gmane.os.openbsd.www |
|---|---|
| Message-ID | <[email protected]> |
A tip that might be worth adding to http://www.openssh.com/faq.html#2.9
"To prevent .bashrc from causing SCP to fail, add a line like the following
to your .bashrc:
*# SCP / RCP can't handle .bashrc's with output, so check to see if this is
a non-interactive session.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
*
"Put this *before* the output of your .bashrc, but *after* anything in your
.bashrc that doesn't produce text output. It will prevent your .bashrc from
outputting anything when it is called via SCP."