樹莓派爬坑記錄

問題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,[email protected],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,[email protected]

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,[email protected],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,[email protected]

sudo /etc/init.d/ssh restart

到這裏SSH Secure Shell這逼軟件才登錄上

加羣找我吹牛逼吧:667039215

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章