首页 槐荫 会话共享功能的作用,会话共享是什么意思

会话共享功能的作用,会话共享是什么意思

screen命令不仅能够让使用者在极端情况下也不丢失对系统的远程控制,保证了生产环境远程工作的不间断性,而且还具有会话共享、分屏切割、会话锁定等等实用的功能。会话共享功能是一件很酷的事情,当多个用户同时用某个用户远程控制主机的时候,便可以把屏幕内容共享出来。详情请关注《linux就该这么学》。

01 如图所示:

02 要实现会话共享功能,需要先通过客户终端A远程ssh连接到服务器主机端,并创建一个会话窗口: [root@client A ~]# ssh 192.168.10.10 The authenticity of host ‘192.168.10.10 (192.168.10.10)’ can’t be established. ECDSA key fingerprint is 70:3b:5d:37:96:7b:2e:a5:28:0d:7e:dc:47:6a:fe:5c. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added ‘192.168.10.10’ (ECDSA) to the list of known hosts. root@192.168.10.10’s password: Last login: Wed May 4 07:56:29 2017 [root@client A ~]# screen -S linuxprobe [root@client A ~]#

03 然后开启第二台客户终端B远程ssh连接到服务器主机端,执行获取远程会话的命令即可,马上两台主机就能看到相同的内容了: [root@client B ~]# ssh 192.168.10.10 The authenticity of host ‘192.168.10.10 (192.168.10.10)’ can’t be established. ECDSA key fingerprint is 70:3b:5d:37:96:7b:2e:a5:28:0d:7e:dc:47:6a:fe:5c. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added ‘192.168.10.10’ (ECDSA) to the list of known hosts. root@192.168.10.10’s password: Last login: Wed Feb 22 04:55:38 2017 from 192.168.10.10 [root@client B ~]# screen -x [root@client B ~]

热门文章