|
From: | Flavio Steimacher |
Subject: | Re: [shell-script] Executar comando ssh com CGI em Sheel Script |
Date: | Thu, 29 May 2014 10:07:42 -0300 |
Amigo vc quer somente que ele mostre as opções do COmando SSH??tenta colocar o ssh sem o parametro.
Em 29 de maio de 2014 09:34, address@hidden [shell-script] <address@hidden> escreveu:
Ola, estou brincando com base nesse artigo http://thobias.org/doc/cgi_shell.html, concigo executar varios comandos mas quando tento executar um ssh ele não funciona e não da erro nem nada, ja tentei jogar a saida para um arquivo mas fica sempre em branco, ja tentei alterar as permissões mas até agora nada, algum dos colegas ja tentou algo desse tipo?
abaixo tem um exemplo do arquivo
#!/bin/bash
echo "content-type: text/html"
echo
ping -c 3 8.8.8.8
ssh --h
o ping funciona normal, menos o comando ssh, ja se eu executar direto no termial os dois funcionam e com qualquer usuario
Att.
Anderson Junior--
Atenciosamente,
Flavio Steimacher
DBA Oracle
LPIC1 - Linux Professional Institute Certified
CLA - Novell Certified Linux Administrator
DCTS - Novell Data Center Technical Specialist
[Prev in Thread] Current Thread [Next in Thread]
- Re: [shell-script] Executar comando ssh com CGI em Sheel Script, Flavio Steimacher <=
- Re: [shell-script] Executar comando ssh com CGI em Sheel Script, andersonscinfo, 2014/05/29
- Re: [shell-script] Executar comando ssh com CGI em Sheel Script, andersonscinfo, 2014/05/29
- Re: [shell-script] Executar comando ssh com CGI em Sheel Script, Paulo Bettega, 2014/05/29
- Re: [shell-script] Executar comando ssh com CGI em Sheel Script, Paulo Bettega, 2014/05/29
- Re: [shell-script] Executar comando ssh com CGI em Sheel Script, andersonscinfo, 2014/05/29
- Re: [shell-script] Executar comando ssh com CGI em Sheel Script, andersonscinfo, 2014/05/29
- Re: [shell-script] Executar comando ssh com CGI em Sheel Script, Ernander (Nander), 2014/05/29
- Re: [shell-script] Executar comando ssh com CGI em Sheel Script, andersonscinfo, 2014/05/29
- Re: [shell-script] Executar comando ssh com CGI em Sheel Script, Ernander (Nander), 2014/05/29
- Re: [shell-script] Executar comando ssh com CGI em Sheel Script, andersonscinfo, 2014/05/29
- Prev by Date: Executando ssh com CGI em Shell Script
- Next by Date: Re: [shell-script] Executar comando ssh com CGI em Sheel Script
- Previous by thread: Executando ssh com CGI em Shell Script
- Next by thread: Re: [shell-script] Executar comando ssh com CGI em Sheel Script
- Index(es):