Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将SFTP与PhpStorm一起使用以访问服务器/var/www文件夹_Php_Ssh_Permissions_Phpstorm_Sftp - Fatal编程技术网

如何将SFTP与PhpStorm一起使用以访问服务器/var/www文件夹

如何将SFTP与PhpStorm一起使用以访问服务器/var/www文件夹,php,ssh,permissions,phpstorm,sftp,Php,Ssh,Permissions,Phpstorm,Sftp,我正在尝试将PhpStorm用于远程服务器项目,但不幸的是,我无法成功地进行SFTP配置 我遵循了这些步骤。但我还是犯了同样的错误 Write failed: Broken pipe Couldn't read packet: Connection reset by peer 我的ssh配置: UsePAM yes Subsystem sftp internal-sftp Match user www-data ChrootDirectory /var/www X11Forwarding no

我正在尝试将PhpStorm用于远程服务器项目,但不幸的是,我无法成功地进行SFTP配置

我遵循了这些步骤。但我还是犯了同样的错误

Write failed: Broken pipe
Couldn't read packet: Connection reset by peer
我的ssh配置:

UsePAM yes
Subsystem sftp internal-sftp
Match user www-data
ChrootDirectory /var/www
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp
权限

chown root:root /var/www
sudo chown -R www-data:www-data /var/www/site
我尝试了不同的方法,但仍然是同一个问题

如何正确地做到这一点,因为这是一个真实的项目,我担心权限错误


请帮助解决此问题,我已经花了几个小时来处理此问题。

您最好在serverfault.com上问这个问题。您是否能够使用其他应用程序(如FileZilla)或操作系统上的任何应用程序连接到您的SFTP服务器?