MobaXterm远程登陆ubuntu

2024-05-01  本文已影响0人  蜗牛blue_wang

1.ubuntu安装ssh服务

sudo apt-get install openssh-server

2.Moba开个SSH通信
输入ubuntu的NAT IP,

wang@wang-virtual-machine:~/Desktop$ ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.126.129  netmask 255.255.255.0  broadcast 192.168.126.255
        inet6 fe80::a7bd:7a69:985e:ce90  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:bd:4c:9d  txqueuelen 1000  (Ethernet)
        RX packets 7850  bytes 8875667 (8.8 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3890  bytes 454690 (454.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 720  bytes 77006 (77.0 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 720  bytes 77006 (77.0 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

捕获.PNG

点OK后提示输入密码就是成功了,输入密码就可以进入终端

如果连不上就关闭电脑的防火墙和ubuntu的(sudo ufw disable)再试

上一篇 下一篇

猜你喜欢

热点阅读