Ubuntu网线直连树莓派
1.将有线连接设置为共享模式
2.获取本机有线网卡的ip
有线网卡ipifconfig
enp1s0Linkencap:EthernetHWaddr40:8d:5c:8f:40:b8
inetaddr:10.42.0.1Bcast:10.42.0.255Mask:255.255.255.0
inet6addr:fe80::56a5:f31d:a956:4128/64Scope:Link
UPBROADCASTRUNNINGMULTICASTMTU:1500Metric:1
RXpackets:1389916errors:0dropped:0overruns:0frame:0
TXpackets:774111errors:0dropped:0overruns:0carrier:0
collisions:0txqueuelen:1000
RXbytes:1184357850(1.1GB)TXbytes:212820774(212.8MB)
3.获得树莓派ip
Namp10.42.0.1/24
StartingNmap7.01(https://nmap.org)at2017-07-0117:36CST
Nmapscanreportfor10.42.0.109
Hostisup(0.00043slatency).
Notshown:997closedports
PORTSTATESERVICE
22/tcpopenssh
53/tcpopendomain
3389/tcpopenms-wbt-server
MACAddress:B8:27:EB:67:45:F2(RaspberryPiFoundation)
4.ssh登录
Ssh登录:sshpi@10.42.0.231
Password:rasperry