Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: tput error |
|---|---|
| Date: | Thu, 8 Nov 2007 20:54:47 +0200 |
Hello, try: ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx007 'halt;' & with white space between the hostname and the command to be executed on the remote server Yiannis On Wed, 7 Nov 2007 11:20:00 +0100 Christian Hennig <christian.hennig@uni-rostock.de> wrote:
Hallo,
i have the a problem with ssh:
i try to shutdown 30 or more systems, i generate a shell script (death.sh) to
do this. It looks like this:
ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o
StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx001'halt;' &
ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o
StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx002'halt;' &
ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o
StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx003'halt;' &
ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o
StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx004'halt;' &
ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o
StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx005'halt;' &
ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o
StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx006'halt;' &
ssh -T -l root -i /home/regman/.ssh/id_dsa.linuxprt -o
StrictHostKeyChecking=no -oProtocol=2 -q -n -oBatchMode=yes lnx007'halt;' &
If i start it direct i a term, all is fine and all systems are down. But i
have to schedule the task by a php-script.
This php-script start with exec("death.sh) the shell-script, the php-script
is start by cron ( i have to use php, because of the framework i use, i have
no choice ;-(
The a got this errors:
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
and all systems are alive, no "halt" reach a system ;-(
If i dont use the "-T" flag i got this error too:
"Pseudo-terminal will not be allocated because stdin is not a terminal"
i try the "-t" flag to, same error, and all alive.
I hope you can help me, thx
--
Christian Hennig <christian.hennig@uni-rostock.de>
-- Kontekakis Yiannis <ykontekakis@gmail.com>
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | tput error, Christian Hennig |
|---|---|
| Next by Date: | unable to connect from netware OpenSSH 3.7.1 to FreeBSD 4.5p1, Juri Mianovich |
| Previous by Thread: | tput error, Christian Hennig |
| Next by Thread: | unable to connect from netware OpenSSH 3.7.1 to FreeBSD 4.5p1, Juri Mianovich |
| Indexes: | [Date] [Thread] [Top] [All Lists] |