树莓派爬坑记录
问题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