in reply to Re^7: How to connect to SFTP via OpenSSH
in thread How to connect to SFTP via OpenSSH
Okay, so I was able to get it to actually upload a file...sort of. I made these changes:
$sftp->setcwd("/root/svcftp/sftp") or die "=[\n" . $sftp->error; $sftp->put("/usr/local/nagios/Misc/sftptest", "/root/svcftp/sftp/sftpt +est") or die "Can't put\n" . $sftp->error;
What I mean by "sort of" is that I see the file appear in the directory on my FTP server, but I still get an error on the put method. The error is :
Couldn't setstat remote file: SSH_FILEXFER_ATTR_PERMISSIONS at line 33 +.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: How to connect to SFTP via OpenSSH
by salva (Canon) on Aug 27, 2014 at 06:44 UTC | |
by Logic_Bomb421 (Novice) on Aug 27, 2014 at 17:40 UTC |