Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux remote control technology

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Log in from 192.168.10.5 to 192.168.10.16, and you can do something on 192.168.10.16, such as copying files.

192.168.10.5

[root@localhost ~]# cd /tmp[root@localhost tmp]# ifconfigens32: flags=4163mtu 1500 inet 192.168.10.5 netmask 255.255.255.0 broadcast 192.168.10.255 inet6 fe80::20c:29ff:fe84:eae5 prefixlen 64 scopeid 0x20 ether 00:0c:29:84:ea:e5 txqueuelen 1000 (Ethernet) RX packets 113798033 bytes 13848840312 (12.8 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 89922573 bytes 134234526128 (125.0 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10loop txqueuelen 1 (Local Loopback) RX packets 168 bytes 14260 (13.9 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 168 bytes 14260 (13.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0[root@localhost tmp]# ls[root@localhost tmp]# pwd/tmp

192.168.10.16

[root@localhost ~]# cd /tmp[root@localhost tmp]# ifconfigens32: flags=4163mtu 1500 inet 192.168.10.16 netmask 255.255.255.0 broadcast 192.168.10.255 inet6 fe80::20c:29ff:fe62:fcc4 prefixlen 64 scopeid 0x20 ether 00:0c:29:62:fc:c4 txqueuelen 1000 (Ethernet) RX packets 20886 bytes 7480105 (7.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 10471 bytes 7083155 (6.7 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10loop txqueuelen 1 (Local Loopback) RX packets 580 bytes 49312 (48.1 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 580 bytes 49312 (48.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0[root@localhost tmp]# lsPHP.gif test timestamp.txt Programmer rank discrimination.jpg backpan.gif restart.jpg[root@localhost tmp]# pwd/tmp

Log in from 192.168.10.5 to 192.168.10.16

[root@localhost tmp]# ssh root@192.168.10.16root@192.168.10.16's password: Last login: Wed Jun 19 22:12:56 2019 from 192.168.10.5[root@localhost ~]# ifconfigens32: flags=4163mtu 1500 inet 192.168.10.16 netmask 255.255.255.0 broadcast 192.168.10.255 inet6 fe80::20c:29ff:fe62:fcc4 prefixlen 64 scopeid 0x20 ether 00:0c:29:62:fc:c4 txqueuelen 1000 (Ethernet) RX packets 21050 bytes 7495118 (7.1 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 10554 bytes 7095520 (6.7 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10loop txqueuelen 1 (Local Loopback) RX packets 580 bytes 49312 (48.1 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 580 bytes 49312 (48.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Copy files from 192.168.10.16 to 192.168.10.5

[root@localhost ~]# cd /tmp[root@localhost tmp]# lsPHP.gif test timestamp.txt Programmer level discrimination.jpg Back pan.gif Restart.jpg[root@localhost tmp]# scp Programmer level discrimination.jpg root@192.168.10.5:/tmpThe authenticity of host '192.168.10.5 (192.168.10.5)' can't be established.ECDSA key fingerprint is 60:aa:a7:f2:b2:bb:24:d4:31:50:2a:4f:50:82:e0:80.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added '192.168.10.5' (ECDSA) to the list of known hosts. 192.168.10.5's password: Programmer level discrimination.jpg 100% 12KB 12.1KB/s 00:00 [root@localhost tmp]# exit #logoutConnection to 192.168.10.16 closed. [root@localhost tmp]# ifconfig #Confirm that you have returned to 192.168.10.5ens32: flags=4163mtu 1500 inet 192.168.10.5 netmask 255.255.255.0 broadcast 192.168.10.255 inet6 fe80::20c:29ff:fe84:eae5 prefixlen 64 scopeid 0x20 ether 00:0c:29:84:ea:e5 txqueuelen 1000 (Ethernet) RX packets 113798588 bytes 13848904758 (12.8 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 89923000 bytes 134234574328 (125.0 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10loop txqueuelen 1 (Local Loopback) RX packets 168 bytes 14260 (13.9 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 168 bytes 14260 (13.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0[root@localhost tmp]# ls #successfully copied file from 192.168.10.16 to 192.168.10.5 programmer level discrimination.jpg

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report