电脑通过Putty远程连接树莓派

编程入门 行业动态 更新时间:2024-10-25 08:17:02

确保你的电脑和你的树莓派连接同一个热点

1.让你的树莓派与你的电脑连接你的手机热点

树莓派使用命令行配置wifi连接 - 哔哩哔哩 (bilibili)

输入指令看到wlan0的RX与TX不是0就代表连接热点成功了

pi@raspbian:~$ sudo ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.243.125  netmask 255.255.255.0  broadcast 192.168.243.255
        inet6 2409:8914:244:b7f:1f05:f093:abf3:30ce  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::ceda:dbd1:2893:9ff9  prefixlen 64  scopeid 0x20<link>
        ether dc:a6:32:29:13:8d  txqueuelen 1000  (Ethernet)
        RX packets 866  bytes 106471 (103.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 478  bytes 71486 (69.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

判断是否能访问Internet,可以Ping www.baidu

pi@raspbian:~$ ping www.baidu
PING www.a.shifen (39.156.66.18) 56(84) bytes of data.
64 bytes from 39.156.66.18 (39.156.66.18): icmp_seq=1 ttl=50 time=44.7 ms
64 bytes from 39.156.66.18 (39.156.66.18): icmp_seq=2 ttl=50 time=58.7 ms
64 bytes from 39.156.66.18 (39.156.66.18): icmp_seq=3 ttl=50 time=59.0 ms
64 bytes from 39.156.66.18 (39.156.66.18): icmp_seq=4 ttl=50 time=41.8 ms
64 bytes from 39.156.66.18 (39.156.66.18): icmp_seq=5 ttl=50 time=42.4 ms
 

2.使用Putty连接树莓派

        1>下载一个Putty

                Download PuTTY - a free SSH and telnet client for Windows

        2> 查看树莓派的ip地址,在树莓派终端输入 sudo ifconfig,里面的192.168.243.125就是我们要的ip地址

       wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.243.125  netmask 255.255.255.0  broadcast 192.168.243.255
        inet6 2409:8914:244:b7f:1f05:f093:abf3:30ce  prefixlen 64  scopeid 0x0<g

        3> 输入地址,然后连接

这里填写你的树莓派用户名,一般是 pi 

 

这里填写你的树莓派密码,一般是raspberry 

 

 

参考资料

(177条消息) SSH远程连接访问树莓派【无公网IP做内网穿透】_LisaCpolar的博客-CSDN博客_树莓派ssh连接

树莓派远程连接的三种方式总结 - 走看看 (zoukankan) 

更多推荐

电脑通过Putty远程连接树莓派

本文发布于:2023-06-14 01:54:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1424612.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:电脑   Putty   树莓派

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!