可用于多个ssh登录
我们一直在使用ansible进行部署。当我登录到服务器类型可用于多个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-
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。我将通读这篇文章。