alongwor has asked for the wisdom of the Perl Monks concerning the following question:
This code will connect and give me the prompt I would see when logging in normally.my (%args) = @_; $args {hostname} = "XX.XXX.XXX.XXX"; $args {dm_user} = "username"; $args {password} = "password"; $args {protocol} = "2,1"; $args {debug} = "1"; my $ssh = Net::SSH::Perl->new($args {hostname}, %args); $ssh -> login($args {dm_user}, $args {password}); $ssh -> shell;
The connection is closed with the following message# my ($stdout, $stderr, $exit) = $test_hash {ssh_session} -> cmd ($cmd +);
Has anyone any ideas that may help me. I am open to all ideas :-)Received disconnect message: Switch: SCP command not recognized. at /usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/SSH1.pm line 369
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Alteon's and SSH
by castaway (Parson) on Nov 05, 2003 at 14:24 UTC | |
by alongwor (Novice) on Nov 05, 2003 at 14:57 UTC | |
|
Re: Alteon's and SSH
by iburrell (Chaplain) on Nov 05, 2003 at 18:32 UTC | |
|
Re: Alteon's and SSH
by simonm (Vicar) on Nov 06, 2003 at 05:44 UTC | |
by alongwor (Novice) on Nov 10, 2003 at 12:26 UTC |