The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-04-2008
foundouck foundouck is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 1
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.