|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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:
sincerely. |
| Sponsored Links | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| 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 |
|
|