当前位置:网站首页>电脑通过Putty远程连接树莓派
电脑通过Putty远程连接树莓派
2022-07-04 06:56:00 【思考实践】
确保你的电脑和你的树莓派连接同一个热点
1.让你的树莓派与你的电脑连接你的手机热点
树莓派使用命令行配置wifi连接 - 哔哩哔哩 (bilibili.com)
输入指令看到wlan0的RX与TX不是0就代表连接热点成功了
[email protected]:~$ 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.com
[email protected]:~$ ping www.baidu.com
PING www.a.shifen.com (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连接
边栏推荐
- 云Redis 有什么用? 云redis怎么用?
- Tar source code analysis Part 2
- List of top ten professional skills required for data science work
- Option (024) - do all objects have prototypes?
- [FPGA tutorial case 7] design and implementation of counter based on Verilog
- tcp socket 的 recv 如何接收指定长度消息?
- Modify TCP timestamp to optimize transmission performance
- Selection (021) - what is the output of the following code?
- Summary of leetcode BFS question brushing
- 响应式移动Web测试题
猜你喜欢
the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty‘
notepad++如何统计单词数量
Responsive mobile web test questions
P26-P34 third_ template
Mysql 45讲学习笔记(七)行锁
[backpack DP] backpack problem
响应式移动Web测试题
com. alibaba. nacos. api. exception. NacosException
Campus network problems
[Valentine's day] - you can change your love and write down your lover's name
随机推荐
tcp socket 的 recv 如何接收指定长度消息?
Selection (023) - what are the three stages of event propagation?
颈椎、脚气
内卷怎么破?
selenium IDE插件下载安装使用教程
2022年,或许是未来10年经济最好的一年,2022年你毕业了吗?毕业后是怎么计划的?
Code rant: from hard coding to configurable, rule engine, low code DSL complexity clock
A new understanding of how to encrypt industrial computers: host reinforcement application
CORS is not intended to protect API endpoints - nikofischer
tars源码分析之6
regular expression
Cochez une colonne d'affichage dans une colonne de tableau connue
Selection (022) - what is the output of the following code?
What is the "relative dilemma" in cognitive fallacy?
【GF(q)+LDPC】基于二值图GF(q)域的规则LDPC编译码设计与matlab仿真
com. alibaba. nacos. api. exception. NacosException
leetcode825. 适龄的朋友
Tar source code analysis 8
Responsive mobile web test questions
Wechat applet scroll view component scrollable view area