L
lerameur
hello,
I am using ftp in perl script with no problem. I want to use SCP
instead of ftp but I am not having any luck. Do I need a key on the
receiving end??. The script uses the put command and gives me an error
when it cannot use this command:
.....
$SCP->cwd($directory) or $newerr=1; #getting into the directory
push @ERRORS, "Can't cd $!\n" if $newerr;
myerr() if $newerr;
$SCP->quit if $newerr;
$SCP->put("$file_to_put") or die $SCP->{errstr};
print "Putting file and quitting \n";
$SCP->quit;
Here the error message:
Connected
Getting file list
Logged in
unable to initialize mechanism library [/usr/lib/gss/gl/mech_krb5.so]
Host key verification failed.
lost connection
I am using ftp in perl script with no problem. I want to use SCP
instead of ftp but I am not having any luck. Do I need a key on the
receiving end??. The script uses the put command and gives me an error
when it cannot use this command:
.....
$SCP->cwd($directory) or $newerr=1; #getting into the directory
push @ERRORS, "Can't cd $!\n" if $newerr;
myerr() if $newerr;
$SCP->quit if $newerr;
$SCP->put("$file_to_put") or die $SCP->{errstr};
print "Putting file and quitting \n";
$SCP->quit;
Here the error message:
Connected
Getting file list
Logged in
unable to initialize mechanism library [/usr/lib/gss/gl/mech_krb5.so]
Host key verification failed.
lost connection