[Ssh-sftp-perl-users] sftp in windows environment
Brought to you by:
dbrobins
From: Michael R. <mra...@ut...> - 2004-07-28 14:37:31
|
I'm trying to convert all of my scripts from Net-FTP over to Net-SFTP on ActiveState 5.6.1 and I'm having some difficulty. I installed Net-SFTP successfully and had a port mapping issue. I edited the winnt/system32/drivers/etc/services file and fixed that issue by adding ssh 22/tcp to the file. Then I received the following error message: Your vendor has not defined Fcntl macro F_SETFL, used at H:/Perl/site/lib/Net/SSH/Perl.pm line 214. After some research, I found that I need to install Net-SSH-W32Perl that is supposed to contain a workaround. I've installed it successfully, but I'm not sure how to force Net-SFTP to use that module as opposed to the Net-SSH-Perl module. I'm still getting the same error message. After some more googling, I edited the /Perl/site/lib/Net/SSH/Perl.pm file and commented out the call to fcntl and now I'm getting the following error: Key class 'Net::SSH::Perl::Key::DSA' is unsupported: Can't locate Crypt/DSA.pm in @INC (@INC contains: lib D:/Perl/lib D:/Perl/site/lib .) at D:/Perl/site/lib/Net/SSH/Perl/Key/DSA.pm line 14, <GEN0> line 1. BEGIN failed--compilation aborted at D:/Perl/site/lib/Net/SSH/Perl/Key/DSA.pm line 14, <GEN0> line 1. Compilation failed in require at (eval 36) line 1, <GEN0> line 1. BEGIN failed--compilation aborted at (eval 36) line 1, <GEN0> line 1. When I search, I cannot find anything regarding this key class error. Does anyone have any sample code for appending files using Net-SFTP in a Windows environment or have a workaround for this? -Mike |