树莓派爬坑记录

问题1:Cannot currently show the dekstop

       好久之前买了个树莓派4b,最近突然想起,拿出来玩一下,于是乎VNC下载完成,能远程连接到树莓派。但是树莓派一关机就会显示“Cannot currently show the dekstop”这个问题解决了,我解决的方式很简单,把树莓派插到我的显示器上,关机重新启动。树莓派自动配置分辨率就显示了,然后改成你用VNC登录树莓派的那台电脑的显示器的分辨率即可
修改如下

sudo raspi-config

选中7 Advanced Options
选中A5 Resolution
然后选你电脑显示器的分辨率即可
我这里是DMT Mode 82 1920*1080 60Hz 16:9

问题2:SSH显示Server rasponeded “Algorithm negotiation failed”. Key exchange with the remote host failed. This can happen for example. if the remote host computer does not support the selected algorithms.

这个问题快把我怼疯了,不过好在我解决了,网上有很多解决方法,但是都很一样
错误的方法如下:添加如下加密算法

sudo 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

sudo /etc/init.d/ssh restart

原封不动的更改了之后会出现以下错误
[…] Restarting ssh (via systemctl): ssh.serviceJob for ssh.service failed because the control process exited with error code.
See “systemctl status ssh.service” and “journalctl -xe” for details.
failed!
真TM的神奇,你解决了,到我这里解决不了,内心实在是日狗。
正确的做法
这应该就是有的算法不支持,导致的报错,解决的方法也很简单,一个一个的添加,最终被我添加完后SSH可以登陆了
代码如下

sudo vi /etc/ssh/sshd_config

Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc

MACs hmac-md5,hmac-sha1,umac-64@openssh.com,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

sudo /etc/init.d/ssh restart

到这里SSH Secure Shell这逼软件才登录上

加群找我吹牛逼吧:667039215

  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值