Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
可用于多个ssh登录_Ssh_Ansible - Fatal编程技术网

可用于多个ssh登录

可用于多个ssh登录,ssh,ansible,Ssh,Ansible,我们一直在使用ansible进行部署。当我登录到服务器类型last命令时,它显示了太多的登录名。你知道为什么有这么多的登录名吗 deployer pts/0 ip-10-0-0-xxx.ap Tue Oct 3 08:54 - 08:54 (00:00) deployer pts/0 ip-10-0-0-xxx.ap Tue Oct 3 08:54 - 08:54 (00:00) deployer pts/0 ip-10-0-0-

我们一直在使用ansible进行部署。当我登录到服务器类型
last
命令时,它显示了太多的登录名。你知道为什么有这么多的登录名吗

deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)    
deployer pts/0        ip-10-0-0-xxx.ap Tue Oct  3 08:54 - 08:54  (00:00)

根据您的配置,Ansible最多可以为playbook中的每个任务创建5个不同的SSH连接

确保已启用控制套接字和管道模式以减少连接数并提高速度。
有关详细信息,请参阅(OpenSSH连接提示部分)。

谢谢@Konstantin。我将通读这篇文章。