Linux下怎么实现远程控制
Linux下怎么实现远程控制
这篇文章主要讲解了“Linux下怎么实现远程控制”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Linux下怎么实现远程控制”吧!
从192.168.10.5这台机登录到192.168.10.16这台机上,可以在192.168.10.16做一些操作,比如拷贝文件。

192.168.10.5
[root@localhost~]#cd/tmp[root@localhosttmp]#ifconfigens32:flags=4163mtu1500inet192.168.10.5netmask255.255.255.0broadcast192.168.10.255inet6fe80::20c:29ff:fe84:eae5prefixlen64scopeid0x20ether00:0c:29:84:ea:e5txqueuelen1000(Ethernet)RXpackets113798033bytes13848840312(12.8GiB)RXerrors0dropped0overruns0frame0TXpackets89922573bytes134234526128(125.0GiB)TXerrors0dropped0overruns0carrier0collisions0lo:flags=73mtu65536inet127.0.0.1netmask255.0.0.0inet6::1prefixlen128scopeid0x10looptxqueuelen1(LocalLoopback)RXpackets168bytes14260(13.9KiB)RXerrors0dropped0overruns0frame0TXpackets168bytes14260(13.9KiB)TXerrors0dropped0overruns0carrier0collisions0[root@localhosttmp]#ls[root@localhosttmp]#pwd/tmp
192.168.10.16
[root@localhost~]#cd/tmp[root@localhosttmp]#ifconfigens32:flags=4163mtu1500inet192.168.10.16netmask255.255.255.0broadcast192.168.10.255inet6fe80::20c:29ff:fe62:fcc4prefixlen64scopeid0x20ether00:0c:29:62:fc:c4txqueuelen1000(Ethernet)RXpackets20886bytes7480105(7.1MiB)RXerrors0dropped0overruns0frame0TXpackets10471bytes7083155(6.7MiB)TXerrors0dropped0overruns0carrier0collisions0lo:flags=73mtu65536inet127.0.0.1netmask255.0.0.0inet6::1prefixlen128scopeid0x10looptxqueuelen1(LocalLoopback)RXpackets580bytes49312(48.1KiB)RXerrors0dropped0overruns0frame0TXpackets580bytes49312(48.1KiB)TXerrors0dropped0overruns0carrier0collisions0[root@localhosttmp]#lsPHP.giftesttimestamp.txt程序员等级判别.jpg背锅.gif重启.jpg[root@localhosttmp]#pwd/tmp
从192.168.10.5登录到192.168.10.16
[root@localhosttmp]#sshroot@192.168.10.16root@192.168.10.16'spassword:Lastlogin:WedJun1922:12:562019from192.168.10.5[root@localhost~]#ifconfigens32:flags=4163mtu1500inet192.168.10.16netmask255.255.255.0broadcast192.168.10.255inet6fe80::20c:29ff:fe62:fcc4prefixlen64scopeid0x20ether00:0c:29:62:fc:c4txqueuelen1000(Ethernet)RXpackets21050bytes7495118(7.1MiB)RXerrors0dropped0overruns0frame0TXpackets10554bytes7095520(6.7MiB)TXerrors0dropped0overruns0carrier0collisions0lo:flags=73mtu65536inet127.0.0.1netmask255.0.0.0inet6::1prefixlen128scopeid0x10looptxqueuelen1(LocalLoopback)RXpackets580bytes49312(48.1KiB)RXerrors0dropped0overruns0frame0TXpackets580bytes49312(48.1KiB)TXerrors0dropped0overruns0carrier0collisions0
从192.168.10.16拷贝文件到192.168.10.5
[root@localhost~]#cd/tmp[root@localhosttmp]#lsPHP.giftesttimestamp.txt程序员等级判别.jpg背锅.gif重启.jpg[root@localhosttmp]#scp程序员等级判别.jpgroot@192.168.10.5:/tmpTheauthenticityofhost'192.168.10.5(192.168.10.5)'can'tbeestablished.ECDSAkeyfingerprintis60:aa:a7:f2:b2:bb:24:d4:31:50:2a:4f:50:82:e0:80.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'192.168.10.5'(ECDSA)tothelistofknownhosts.root@192.168.10.5'spassword:程序员等级判别.jpg100%12KB12.1KB/s00:00[root@localhosttmp]#exit#退出远程登录logoutConnectionto192.168.10.16closed.[root@localhosttmp]#ifconfig#确认已经回到192.168.10.5ens32:flags=4163mtu1500inet192.168.10.5netmask255.255.255.0broadcast192.168.10.255inet6fe80::20c:29ff:fe84:eae5prefixlen64scopeid0x20ether00:0c:29:84:ea:e5txqueuelen1000(Ethernet)RXpackets113798588bytes13848904758(12.8GiB)RXerrors0dropped0overruns0frame0TXpackets89923000bytes134234574328(125.0GiB)TXerrors0dropped0overruns0carrier0collisions0lo:flags=73mtu65536inet127.0.0.1netmask255.0.0.0inet6::1prefixlen128scopeid0x10looptxqueuelen1(LocalLoopback)RXpackets168bytes14260(13.9KiB)RXerrors0dropped0overruns0frame0TXpackets168bytes14260(13.9KiB)TXerrors0dropped0overruns0carrier0collisions0[root@localhosttmp]#ls#已经成功从192.168.10.16拷贝文件到192.168.10.5程序员等级判别.jpg
感谢各位的阅读,以上就是“Linux下怎么实现远程控制”的内容了,经过本文的学习后,相信大家对Linux下怎么实现远程控制这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是恰卡编程网,小编将为大家推送更多相关知识点的文章,欢迎关注!
推荐阅读
-
linux Centos如何安装PHP7
linuxCentos如何安装PHP7今天小编给大家分享一下li...
-
干了10多年的php,还不会安装,是不是丢人
-
Linux编程的十大代码编辑器新鲜出炉,你用的入榜单了吗?
-
从7到8,CentOS又更新了什么
-
PHP程序员的技术成长规划-基础阶段篇
-
Linux curl命令
Linuxcurl命令是一个利用URL规则在命令行下工作的文件传输工具。它支持文件的上传和下载,所以是综合传输工具,但...
-
CentOS和RedHat下8个最常用的YUM库
-
Linux系列之CentOS+Nginx+PHP+MySQL
-
3分钟短文:Laravel写个命令行,你就是下一个Geek
-
是时候深入了解Linux的系统结构了
什么是Linux?如果你以前从未接触过Linux,可能就不清楚为什么会有这么多不同的Linux发行版。在查看Linux...