Server responded “Algorithm negotiation failed“错误解决方法

错误:

使用SSH Secure Shell 工具链接远程linux服务器报错如下图:

解决方案:

编辑/etc/ssh/sshd_config文件,具体命令如下为 vi /etc/ssh/sshd_config ,在文件的末尾添加如下内容:

Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc

MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96,hmac-md5-96

KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org

如下图:

添加上边内容前需要搜索文件中是否包含:Ciphers  MACs  KexAlgorithms 等未注释的字段,如果有先用“#”进行注释

重启ssh服务:

查看查看服务状态,inactive(不可用),active(可用),命令为:systemctl     status    sshd    

重启服务,命令为:systemctl     restart    sshd 

操作完以上步骤即解决问题,下边为补充的几个命令。

重新加载服务配置,命令为:systemctl     reload    sshd 

设定服务开机启动,命令为:systemctl     enable    sshd

设定服务开机不启动,命令为:systemctl    disable    sshd 

列出已经开启服务当前状态,命令为:systemctl    list-units 

  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据引用和引用,当服务器返回404状态时,表示请求的资源未找到。解决这个问题的方法有两种。方案一是找到config里的index.js,在其中修改assetsPublicPath为“./”。方案二是尝试将资源的路径修改为正确的路径。根据引用提到的问题,如果是网络图片的问题,你可以尝试使用正确的图片链接。如果是base64的问题,你可以查找相关的文档来了解如何正确使用base64编码的图片。至于引用中提到的第三种方法,使用`<image/>`标签来解决问题,你可以在.wxss文件中查找相关的文档了解如何正确使用该标签。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [报错解决——Failed to load resource: the server responded with a status of 404 (Not Found)](https://blog.csdn.net/m0_51511286/article/details/123127476)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [vue打包npm run build时候界面报错的解决](https://download.csdn.net/download/weixin_38626943/13128820)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [微信小程序 the server responded with a status of 404 错误解决方法](https://blog.csdn.net/BaiYH1994/article/details/77882083)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值