1、如图所示:
2、要实现会话共享功能,需要先通过客户终端A远程ssh连接到服务器主机端,并创建一个会话窗口:[root@client A ~]# ssh 192.168.10.10The 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)? yesWarning: Permanently added '192.168.10.10' (ECDSA) to the list of known [email protected]'s password:Last login: Wed May 4 07:56:29 2017[root@client A ~]# screen -S linuxprobe[root@client A ~]#
3、然后开启第二台客户终端B远程ssh连接到服务器主机端,执行获取远程会话的命令即可,马上两台主机就能看到相同的内容了:[root@client B ~]# ssh 192.168.10.10The 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)? yesWarning: Permanently added '192.168.10.10' (ECDSA) to the list of known [email protected]'s password:Last login: Wed Feb 22 04:55:38 2017 from 192.168.10.10[root@client B ~]# screen -x [root@client B ~]