ssh remote command 7750

Post Reply
harmen

ssh remote command 7750

Post by harmen »

Hi all, I have a question about the execution of remote commands via SSHv2 on 7750. It doesn't work by default, for example when I try

ssh username@host 'show port description'

it says that connection was closed by remote host. The command is working fine with linux servers, juniper switches , etc.., so I am sure the problem is in alcatel configuration.
I would appreciate any help .

Thanks in advance
tgimmel

Re: ssh remote command 7750

Post by tgimmel »

The shell it spawns won't work. Its a pain. I have a workaround if you don't mind using some perl. You can grab it at http://github.com/tgimmel/ssh-telnet.
---Tim
harmen

Re: ssh remote command 7750

Post by harmen »

Hi ,

Thanks for the link, but I have already implemented "expect+ssh+php" solution for getting the information I need and post on the page.

Thanks again. Good luck.
cavagnaro

Re: ssh remote command 7750

Post by cavagnaro »

A user is asking:
Hello, frend! How you choose problem with looking glass and ALU SR 7750? I use command "passthru" and "exec" for execute script expect, but i nothing see.
for example i use:
exec('expect /var/www/lg/routers/alcatel_scripts/ping_alu.exp 8.8.8.9 10.220.66.2', $stream);
and in web-serv z see "false" in output command.

Please, help me:)
Post Reply

Return to “7750 SR”