Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Rsync “stdin: is not a tty” error  (Read 3461 times)

0 Members and 1 Guest are viewing this topic.

jominj

  • Guest
Rsync “stdin: is not a tty” error
« on: April 28, 2014, 06:00:41 am »
Some times when you Rsync from one server to another server such an error will appear "stdin: is not a tty” .  This error is because your remote shell is trying to execute something which needs to run interactively but when you are most likely not in an interactive mode.

To fix this follow below steps:
1. Login to your server (remote / local) where you wish to run rsycn or where you wish to establish the ssh from.

2.  Next go to the home directory of your user account.
Code: [Select]
# cd /home/username
3.  Edit a file named .bashrc using text editor
Code: [Select]
# vim .bashrc
4. Now add these lines below to the top of your .bashrc file:
Code: [Select]
[ -z "$PS1" ] && return
5. Now save that file. we will be able to login to ssh without error.