Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
share|improve this answer

Your Answer


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.