简体   繁体   English

Raspberry PI无法连接到SSH

[英]Raspberry PI not connects to SSH

I just got my Raspberry PI and I want to use in headless mode(it's better for me and I don't have an HDMI monitor). 我只有Raspberry PI,并且想在无头模式下使用(对我来说更好,因为我没有HDMI监视器)。 I connect my PI to laptop normally, I can ping it, I can find it on the web browser, but I can't connect as SSH. 我通常将PI连接到笔记本电脑,可以ping通它,可以在Web浏览器中找到它,但是不能以SSH方式连接。 Please help me! 请帮我!

Maybe you have not installed ssh server check that, if not : try in Terminal: 也许您尚未安装ssh服务器,如果没有,请检查:在终端中尝试:

sudo apt-get install openssh-server 
reload ssh

Try sudo raspi-config and enable ssh 尝试sudo raspi-config并启用ssh

Furthermore, ensure you have the correct IP address by running sudo ifconfig 此外,通过运行sudo ifconfig确保您具有正确的IP地址。

Lastly, if you wish to remotely connect to your Pi & also its GUI, on your pi install xrdp like such, sudo apt-get install xrdp 最后,如果您希望远程连接到Pi及其GUI,请在pi上安装xrdp,例如sudo apt-get install xrdp

Then on your home computer run Remote Desktop Connection and proceed. 然后在家用计算机上运行“远程桌面连接”并继续。

NOTE: always update and upgrade your package index sudo apt-get update && sudo apt-get upgrade 注意:始终更新和升级您的软件包索引sudo apt-get update && sudo apt-get upgrade

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM