-----BEGIN PGP SIGNED MESSAGE-----


I finally figured it out.  Adding this to sshd_config did the trick:

BatchMode       yes

I saw it suggested as a command line option, but didn't realize it
could be specified in the config file.  Use of that option in this
manner so far doesn't seem to have had any adverse effect on normal
operation, and it did fix the controlling-tty problem with cron.

Hope this helps some of you; I know I'm not the only one who's
wrestled with this.

- -d

- -- 
David Talkington
Community Networking Initiative
[EMAIL PROTECTED]
217-244-1962

PGP key: http://www.prairienet.org/~dtalk/dt000823.asc

Dan Vranesic wrote:

>Hi all,
>
>Apologies if this topic has turned up before. 
>
>Our firewall can stream application data upon establishing
>a secure connection. Ie. on the following:
>
>ssh <firewall> -l <username>
>
>data will automatically be streamed (it is realtime
>statistics for a server) to the connector's shell.
>
>I'd like to establish such a connection without maintaining
>a shell (simply redirect the output to a file, for example). 
>
>Two thoughts were to:
>
>(i) accomplish this via cron, but I'm running into
>the "Pseudo-terminal will not be allocated because stdin is 
>not a terminal" problem. I've tried forcing pseudo-tty
>allocation using the -t flag, but have had no luck.
>
>(ii) nohup the ssh process from a shell, but the connection 
>dies with the shell.
>
>Thanks in advance for any advice/help.
>
>Dan
>

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6

iQEVAwUBOeKwX71ZYOtSwT+tAQHvKgf9HMNXCvdSyyqx1+teDG7zGy/2ihtRR4xZ
1DNtXiB6oTWOvApNUlTVZzMO2ekSyEqdnNtbS2Cs6HSBIXGTV9f9ggm6sScvnPM3
k0+zX5S0AvumCwCvItKSbiCKPCHka5mwhCz8zgCy/OQZX9xW/TkaKDejCOBtih1D
hrIdTHcSpN3Mj5kp5O+uUQKPv9Ui28832nl/dF9xc5dfPXPKdL4ST5nfU94WrNk/
zeEy0s5MpWxJIJpgN7x7W7tC3wQq4zATyF5jPGHvRaowFuwTIVp6SQJljD6pFfGz
DzJDA7sWa9mFMclKRTGpikizFhDTePZYTZkA/KvbimyBb8fAb40CzQ==
=CIIM
-----END PGP SIGNATURE-----


Reply via email to