LinuxQuestions.org
Help answer threads with 0 replies.
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, 12:04 PM   #1
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 245

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, 01:42 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
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, 01:50 PM   #3
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 245

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

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
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 03:29 PM.
 
Old 06-10-2016, 09:53 PM   #5
Turbocapitalist
Member
 
Registered: Apr 2005
Distribution: Ubuntu, Devuan, OpenBSD
Posts: 985
Blog Entries: 3

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:40 PM
/dev/tty stdin Xris718 Linux - Hardware 6 07-13-2012 10:50 AM
SSH access problems: Can only allow users SSH access by adding to root group dhupke Slackware 10 12-21-2008 10:48 AM
CVS on a webserver - stdin not tty NoUse4ANick Linux - Server 2 08-28-2008 12:35 PM
Anyway to use rsync ssh without allowing root access? ifm Linux - Security 0 06-12-2002 02:01 PM


All times are GMT -5. The time now is 06:58 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration