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
heroku-20堆栈上的ssh dss_Heroku_Ssh - Fatal编程技术网

heroku-20堆栈上的ssh dss

heroku-20堆栈上的ssh dss,heroku,ssh,Heroku,Ssh,在将我的Ruby On Rails应用程序从heroku-16升级到heroku-20堆栈时,我无法再连接到某个SFTP服务器: could not settle on host_key algorithm Server host_key preferences: ssh-dss Client host_key preferences: ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.co

在将我的Ruby On Rails应用程序从heroku-16升级到heroku-20堆栈时,我无法再连接到某个SFTP服务器:

could not settle on host_key algorithm
Server host_key preferences: ssh-dss
Client host_key preferences: ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,ssh-rsa-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-rsa
看起来他们已经在当前堆栈中删除了对ssh dss的支持。根据需要,可以通过使用修改/.ssh/config文件来启用它

Host somehost.example.org
    HostKeyAlgorithms +ssh-dss
虽然我不知道如何或者是否有可能在Heroku上修改这个


非常感谢您的帮助。

我可以通过添加
附加所有受支持的算法:true
作为
Net::SFTP.start
调用的参数来重新启用DSS。根据NetSSH,这将一直工作到gem的第7版,该版本将完全取消DSS支持。

我也遇到了类似的问题。您使用Net::SSH还是Net:SFTP?使用Net::SFTP进行连接,尽管项目已经安装了这两个gems