The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to create a pseudo terminal shoba UNIX for Advanced & Expert Users 0 02-26-2008 05:30 AM
pseudo: [ID 129642 kern.info] pseudo-device: vol0 mndavies SUN Solaris 0 02-13-2008 06:21 PM
Difference between <stdin> & terminal vibhor_agarwali UNIX for Advanced & Expert Users 7 07-02-2007 12:28 AM
Terminal dilshik AIX 5 03-26-2004 12:10 AM
connecting to unix through hyper terminal - as a dumb terminal michelle UNIX for Advanced & Expert Users 2 11-05-2001 11:32 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-20-2006
Registered User
 

Join Date: Mar 2006
Location: Mumbai
Posts: 67
Stumble this Post!
Pseudo-terminal will not be allocated because stdin is not a terminal.

I am trying to automate a SSH login using Keys using the following command
ssh -i id_rsa usernamw@ipaddr.
I am successful in doing this and i am getting the Warning Screen and I logon successfully.
but when I am executing the command
tail -1cf put.dat | ssh -i id_rsa username@ipaddr > get.dat 2>&1
It displays me with the error message "Pseudo-terminal will not be allocated because stdin is not a terminal" and I am not able to get the warning Screen.
Could anyone please help.Its on priority.....
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-04-2008
Registered User
 

Join Date: Aug 2008
Posts: 1
Stumble this Post!
Thumbs up

hello,

The solution to use ssh command without using the console(tty) is to add -t -t option.
example:
Code:
ssh -t -t -R 8080:127.0.0.1:80 root@192.168.1.1
The -t -t option is useful to execute ssh script in a crontab without error:
Quote:
Pseudo-terminal will not be allocated because stdin is not a terminal.
Have fun...
sincerely.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0