修复SSH重载后私钥回连的短暂连接拒绝
This commit is contained in:
1 parent
1a317c2175
commit
714753236f
5 files changed
+146
-1
No files matched your search
@@ -1000,7 +1000,7 @@ func (s *Server) provisionServerSSHKey(ctx context.Context, item deployment.Serv
|
||||
}
|
||||
privateItem := item
|
||||
privateItem.AuthMethod = deployment.SSHAuthPrivateKey
|
||||
privateClient, err := s.connectSSHForKey(ctx, privateItem)
|
||||
privateClient, err := s.connectSSHAfterReload(ctx, privateItem)
|
||||
if err != nil {
|
||||
s.logSSHProvisionFailure("private_key_connect", item, err)
|
||||
item.SSHKeyStatus = deployment.SSHKeyStatusFailed
|
||||
|
||||
Reference in new issue
Block a user