LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-10-2016, 11:04 AM   #1
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 282

Rep: Reputation: Disabled
“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.

Thanks.
 
Old 06-10-2016, 12:42 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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.
 
Old 06-10-2016, 12:50 PM   #3
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 282

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-10-2016, 02:17 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Well, we can't tell what you are doing.

My suspicion is that you have done something to your .login or .bashrc or some such. But I don't know.

Why don't you provide a log of what commands you are using and the responses.

Last edited by jpollard; 06-10-2016 at 02:29 PM.
 
Old 06-10-2016, 08:53 PM   #5
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,358
Blog Entries: 3

Rep: Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767Reputation: 3767
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Access to Remote tty cli via ssh metallica1973 Linux - Networking 11 01-10-2013 01:40 PM
/dev/tty stdin Xris718 Linux - Hardware 6 07-13-2012 09:50 AM
SSH access problems: Can only allow users SSH access by adding to root group dhupke Slackware 10 12-21-2008 09:48 AM
CVS on a webserver - stdin not tty NoUse4ANick Linux - Server 2 08-28-2008 11:35 AM
Anyway to use rsync ssh without allowing root access? ifm Linux - Security 0 06-12-2002 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration