필요한 서버에 sftp로 폴더 업로드 소스 개인적으로 사실 요즘 잘 안쓰긴 하다만... 그래도 예전에 네이버에 작성했던 글을 다시 읽으며 코드를 다시 보는게 재밌긴하다. $strServer = $host; $strServerPort = $port; $strServerUsername = $username; $strServerPassword = $pw; $resConnection = ssh2_connect($strServer, $strServerPort); if(ssh2_auth_password($resConnection, $strServerUsername, $strServerPassword)) { $sftp = ssh2_sftp($resConnection); $dir = ssh2_exec($resConne..