Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I got this message when I copy file using scp to CentOS server "stdin: is not a tty". What it means and how I make it go away? The transfer is ok.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

This is likely because the /etc/bashrc script is trying to run stty, and indeed, stdin is not a tty.

You should make sure your login script exits early when it is being used in a non-interactive manner.

In csh syntax this is usually done by adding something like this to your login script (prior to commands like stty that are only useful for interactive sessions):

if ( ! $?USER || "$prompt" == "" || ! $?term ) then
    exit
endif
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.