in reply to Re: Net::SSH::Perl Module Problem
in thread Net::SSH::Perl Module Problem
This is my perl script which logs to remote machine and executes "w" command . But I need to listen on port 22 to track incoming connections on the remote machine and display messages for the same . Is it possible using the net::ssh::perl module ??? Thanks for ur previous help .#!/usr/bin/perl use Net::SSH::Perl; use strict; my $cmd = 'w'; my $host = 'devel.dot.com'; my $user = 'john'; my $ssh = Net::SSH::Perl->new ($host, compression=>1); $ssh->login($user, 'pass'); my ($out, $err, $exit) = $ssh->cmd($cmd); print $out;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Net::SSH::Perl Module Problem
by Grygonos (Chaplain) on Jul 30, 2003 at 15:15 UTC | |
|
Re: Re: Re: Net::SSH::Perl Module Problem
by nega (Scribe) on Jul 30, 2003 at 16:54 UTC |