Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Search Forums:



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-20-2006
Registered User
 

Join Date: Mar 2006
Posts: 88
Thanks: 0
Thanked 1 Time in 1 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.....
Sponsored Links
    #2  
Old 08-04-2008
Registered User
 

Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:30 AM
pseudo: [ID 129642 kern.info] pseudo-device: vol0 mndavies Solaris 0 02-13-2008 09:21 PM
Difference between <stdin> & terminal vibhor_agarwali UNIX for Advanced & Expert Users 7 07-02-2007 03:28 AM
Terminal dilshik AIX 5 03-26-2004 03:10 AM
connecting to unix through hyper terminal - as a dumb terminal michelle UNIX for Advanced & Expert Users 2 11-05-2001 02:32 PM



All times are GMT -4. The time now is 03:08 AM.