“stdin: is not a tty” error, trying to rsync from a dedicated to shared with ssh jail root access
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
“stdin: is not a tty” error, trying to rsync from a dedicated to shared with ssh jail root access
I am trying to run rsync from a dedicated server to a shared server with jail root access restricted to my home directory there (/home/user_name). I am able to ssh from the dedicated to the shared server, but when I run rsync (and try to pull some test files from there), I get the following error:
Code:
stdin: is not a tty
I've already added
Code:
[ -z "$PS1" ] && return
to the top of the .bashrc file, but it still does not work (I get the same error).
I was also trying to ssh from the shared to the dedicated, but the ssh connection times out, and it does not work. I can figure out why. I was trying to do this as I can rsync from any of the directions, but that does not work too, so basically I am not able to rsync the test files.
You will have to show the commands you are actually using.
One way this occurs is if you have some commands in a .login/.bashrc file that require a terminal, but don't have the files check for that first. Using ssh doesn't necessarily require a terminal.
I am trying to figure out why the connection from SHARED to DEDICATED times out, I can log in to both machine. How would I check the reason for it on the DEDICATED system? This is Centos 7 machine, I run yum update && yum upgrade today.
EDIT:
I am able to connect from the DEDICATED to the SHARED now. When I figure out why it times out, I can still be getting the "stdin: is not a tty" from the other one too, so it could be the best to address that, I am not sure. Either way, I've been stuck all day on this now.
Last edited by AdultFoundry; 06-10-2016 at 01:06 PM.
Are you connecting with "ssh" and then running "rsync" on the remote machine with both the source and target over there? Or are you trying to transfer between the remote machine and a local machine. If the former, then "ssh -t" might be a temporary workaround. If the latter, then you can try the same with "rsync -e 'ssh -t' ..." If they work they are only workarounds and don't address the underlying problem that needs to be fixed.
But either way it would help to know more about the commands, as jpollard has asked above. You don't have to keep the machine names or directory names the same, they can be sanitized.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.