LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-05-2010, 10:59 AM   #1
gutterboy
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Rep: Reputation: 0
"stdin is not a tty" when using SCP


Hey guys.... I used the below command to do a transfer from one server to another & got the message "stdin is not a tty"; however the transfer appeared to go through fine.

Code:
scp -rp -P 22 filename.tar.gz root@204.xxx.xxx.xx:/home/oca/public_html/filename.tar.gz
Is this anything to worry about - do I need to fix it & do the transfer again? ..or should my files be fine?

Thanks!
 
Old 12-05-2010, 12:15 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603
- You shouldn't SSH to any root account over the network.
- To check if a file is "fine" run md5sum or sha1sum on filename.tar.gz and then do the same on the remote /home/oca/public_html/filename.tar.gz and see if the hashes match.
- SCP / SSH may not need a (pseudo-)terminal but something may expect it regardless on the remote end. Does any global or personal shell resource files contain "stty" or "mesg" ('egrep -r "stty|mesg" /etc/bashrc /etc/profile /etc/profile.d ~/.bashrc ~/.bash_profile;')?
 
Old 12-05-2010, 12:36 PM   #3
gutterboy
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Original Poster
Rep: Reputation: 0
I tried to run what you said but got this..

$ md5sum filename.tar.gz
md5sum: not found
$ sha1sum filename.tar.gz
sha1sum: not found

Quote:
Does any global or personal shell resource files contain "stty" or "mesg" ('egrep -r "stty|mesg" /etc/bashrc /etc/profile /etc/profile.d ~/.bashrc ~/.bash_profile;')?
Don't really quite understand what you mean there sorry.
 
Old 12-05-2010, 02:04 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603
Quote:
Originally Posted by gutterboy View Post
md5sum: not found
If
Code:
which md5sum; locate md5sum; find /usr -type f -name md5sum
doesn't find any then the binary is not there. That would be quite surprising.


Quote:
Originally Posted by gutterboy View Post
Don't really quite understand what you mean there
No need to feel sorry. I just meant that you could execute
Code:
egrep -r "stty|mesg" /etc/bashrc /etc/profile /etc/profile.d ~/.bashrc ~/.bash_profile
 
Old 12-05-2010, 04:07 PM   #5
gutterboy
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Ok I ran that & got this..

Code:
/usr/local/share/python2.6/Tools/scripts/md5sum.py
/usr/ports/sysutils/e2fsprogs/files/patch-tests-md5sum
/usr/ports/sysutils/isomd5sum
/usr/ports/sysutils/isomd5sum/Makefile
/usr/ports/sysutils/isomd5sum/distinfo
/usr/ports/sysutils/isomd5sum/files
/usr/ports/sysutils/isomd5sum/files/patch-Makefile
/usr/ports/sysutils/isomd5sum/files/patch-md5.c
/usr/ports/sysutils/isomd5sum/pkg-descr
/usr/ports/sysutils/isomd5sum/pkg-plist
The second command produced..

Code:
egrep: /etc/bashrc: No such file or directory
/etc/profile:# mesg y
egrep: /etc/profile.d: No such file or directory
egrep: /www/virtual/brett/.bashrc: No such file or directory
egrep: /www/virtual/brett/.bash_profile: No such file or directory
Thank You!
 
Old 12-06-2010, 05:35 AM   #6
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Hi,

are you on Linux or any BSD? In BSD it might be just md5 for this application.
 
Old 12-06-2010, 06:07 AM   #7
gutterboy
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Yeah.... the server I am running this on is BSD, my second server is CentOS.
 
Old 12-06-2010, 10:38 AM   #8
gutterboy
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Ok, tried it & it worked... thanks File is fine.
 
  


Reply

Tags
scp, stdin, tty


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
how can a program tell if it has stdin "waiting" to be read? aryek Linux - Software 1 07-09-2009 03:14 PM
"more" and "less" piped commands : the mystery of the hidden stdin ! Gerbillaz Linux - General 12 06-01-2009 08:23 AM
"gzip: stdin: unexpected end of file" when untaring Niflheim Linux - Newbie 8 11-12-2007 08:05 PM
"stalled" problem in " scp" command gentleshark Linux - Software 1 08-30-2005 03:08 AM
"stalled" problem in " scp" command gentleshark Linux - Networking 1 08-29-2005 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:07 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