in reply to Re: Net::SFTP Problem
in thread Net::SFTP Problem
Now as both vendor1 and vendor2 are users on the same server which i dont think makes any difference,but now I am getting password prompt for vendor2...############################## #! usr/bin/perl use Net::SFTP::Foreign; $host="myserver"; $username="vendor1"; $portnumber=22; %args={port => $portnumber ,host =>$host ,user => $username ,debug => +1}; my $sftp = Net::SFTP::Foreign->new($host,%args); @str=$sftp->ls("/home/vendor1/"); foreach $hashref(@str) { foreach $key(keys%$hashref) { print "\t $$hashref{$key}\t"; } print "\n"; } #########################
...which i think i should not get. The output should be the output of "ls" command..+ perl sftp.pl vendor2@9.182.244.13's password:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Net::SFTP Problem
by salva (Canon) on Jun 07, 2005 at 11:15 UTC | |
by Zoop (Acolyte) on Jun 07, 2005 at 12:10 UTC | |
by salva (Canon) on Jun 07, 2005 at 12:24 UTC | |
by Zoop (Acolyte) on Jun 08, 2005 at 03:48 UTC |