Hi,
I'd probably use putty in some way shape or form. It does
support
command line options like the normal ssh command. I'm not
sure how
easy it is to do an interactive session but worst case you
could do
something like this keep alive done in perl.
http://www.p
erlmonks.org/?node_id=482992
Colin.
On 6/26/07, Nigel Bowden <nbowden dsl.pipex.com> wrote:
> Hi Guys,
>
> Nigel from Stafford here (long time lurker on the
Birmingham.pm list).
>
> I wonder if any of you guys can help me out...?
>
> I am trying to pull together a script to open up an
interactive SSH session
> to a Cisco Wireless Controller in a DMZ on a network
that I'm working on.
>
> My environment is very constrained : I must put the
script on a Windows 2003
> server with Activestate perl.
>
> I have already pulled together a script that Telnets
(using Net::Telnet) to
> the controller and makes the config changes required,
no probs. But, when I
> try to do the same thing using SSH, this is where the
fun begins....
>
> I have been looking at Net::SSH::Perl, which I managed
to find some ppd's
> for (and installed), but I'm having a difficult time
figuring out how to get
> an interactive session going to send commands/parse for
prompts etc.
>
> I also looked at Net::Appliance::Session, but can't
find any ppd's for this
> module anywhere....
>
> Net::Telnet has a really nice example of opening up a
new pseudo terminal
> and forking ssh, but I'm not quite sure how that would
translate to a
> Windows environment.
>
> I've had a good look around in perl mongers etc, but
this seems to be quite
> a issue for a lot of people.
>
> So, I guess what I'm asking is, as anyone out there got
any other solutions
> that they've managed to get going (for SSH2) in this
type of environment ?
> Or, any other suggestions ?
>
> Thanks
>
> Nigel.
>
>
>
|