我在將文件從我的laravel項目複製到另一臺服務器時遇到問題。這就是我正在做的。 $connection = ssh2_connect($this->ftpHostname, $this->ftpPort);
if (!$connection) {
throw new \Exception("Couldn't connect to {$this->ftpHostname}
我想從SFTP服務器位置下載文件,但日誌看起來不錯,最後沒有任何東西從服務器下載到local.No錯誤也來了。請提前給你的投入感謝。 可用 SFTP文件: [[email protected] test1]# ls /tmp/files/test1
test1.txt test2.txt test3.txt test4.txt
路由器: @Component
public class Sa