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
Ssh WinScp:连接已意外关闭。服务器已发送命令退出状态127_Ssh_Winscp - Fatal编程技术网

Ssh WinScp:连接已意外关闭。服务器已发送命令退出状态127

Ssh WinScp:连接已意外关闭。服务器已发送命令退出状态127,ssh,winscp,Ssh,Winscp,我的服务器是Ubuntu14.04.5LTS,我可以用Putty连接SSH,但不能通过WinSCP连接 当我尝试通过WinSCP连接时,会出现以下错误: 连接已意外关闭。服务器已发送命令退出状态127 要从其他主机访问您的sftp,请确保正确安装和配置了以下内容 已安装的OpenSSH服务器 已配置sshd\u配置 PubkeyAuthentication是 子系统sftp内部sftp 将您的公钥添加到~/.ssh/authorized_keys 在端口22/TCP打开的情况下启动ssh服

我的服务器是Ubuntu14.04.5LTS,我可以用Putty连接SSH,但不能通过WinSCP连接

当我尝试通过WinSCP连接时,会出现以下错误:

连接已意外关闭。服务器已发送命令退出状态127


要从其他主机访问您的sftp,请确保正确安装和配置了以下内容

  • 已安装的OpenSSH服务器
  • 已配置sshd\u配置
    • PubkeyAuthentication是
    • 子系统sftp内部sftp
  • 将您的公钥添加到~/.ssh/authorized_keys

  • 在端口22/TCP打开的情况下启动ssh服务器
    #/etc/init.d/sshd start

  • #iptables-I输入-j接受-p tcp--dport 22
最后,测试
$sftp@

这看起来不像是编程问题。它应该去或类似的网站(比如AskUbuntu,你已经问过了--)