解决SSH连接时提示server responded connection closed

这个问题折腾了我大半天,脑子太呆板,搜了一大堆的资料都不管用,其实很简单,卸载重装就完事了,真笨

SSH连接时提示server responded connection closed
The connection to the remote host was lost.This ususlly means that network conneciton has terminated or that the remote host computer was 

rebooted.Most network outages are short,so trying again may help.
卸载ssh:sudo apt-get remove openssh-server
删除ssh目录:rm -rf /etc/ssh
重新创建ssh目录:mkdir /etc/ssh
赋予ssh目录读写执行的权限:chmod -R 777 /etc/ssh 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
根据引用和引用,当服务器返回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 ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值