Net::SFTP:Foreign Error



I am making a script that grabs a file from a server using SFTP. When
I run the program I get the error, invalid option(s) 'dontsave' at
sftptest1.pl line 13". I'm not sure why I get this error. Can anyone
help me?

#!/usr/bin/perl
#!/usr/bin/sftp
use Net::SFTP::Foreign::Compat;

#login and setup connection

my $host = 'mistral.unl.edu';

my $sftp = Net::SFTP::Foreign::Compat->new($host, user=>'jlahowet');

#change directories (local, remote)

my $local = '/home/deadpickle/Desktop';

my $remote = '/home/jlahowet/UAV';

$sftp->do_open($local);

$sftp->do_opendir($remote);
my $sat = "vis_sat_co.png";

$sftp->get($sat );

.



Relevant Pages

  • Re: SPAM sudden increase
    ... > Dude was on a tech call with f-secure and the tech asked, "So, ... dude is trying to FTP to their server using WSFTP. ... but I think he is talking about sftp protocol - FTP via ...
    (alt.2600)
  • Re: using java with sftp
    ... JCraft JSch package to SFTP files. ... //First Create a JSch session ... System.err.println("Unable to connect to FTP server. ...
    (comp.lang.java.programmer)
  • using java with sftp
    ... JCraft JSch package to SFTP files. ... //First Create a JSch session ... System.err.println("Unable to connect to FTP server. ...
    (comp.lang.java.programmer)
  • Re: sftp password authentication question
    ... > I have a W2k server machine (equippend with SSH Secure Shell) which ... > NetworkSimplicity SSH server). ... > can be apparently easily accomplished with normal FTP. ... > this to work with SFTP or SFTP2 ??? ...
    (comp.security.ssh)
  • Re: Event ID: 6004
    ... had McAfee installed and is using Symanted A/V 10.1.5000.5. ... entries in the Server Log that they want to get rid of. ... A driver packet received from the I/O subsystem was invalid. ...
    (microsoft.public.windows.server.networking)