(user string, targetServer *config.ServerListConfig)
| 38 | } |
| 39 | |
| 40 | func (sc *SSHController) tryLoginWithCache(user string, targetServer *config.ServerListConfig) { |
| 41 | lan := &launcher.SSHLauncher{SSHConnector: *launcher.GetSSHConnectorFromConfig(targetServer)} |
| 42 | lan.SSHTimeout = sshClientTimeoutWhenLogin |
| 43 | if !lan.Launch() { |
| 44 | utils.Errorf("Failed to log in with cached information. Start trying to login again.\n\n") |
| 45 | sc.tryLoginWithoutCache(user) |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | func (sc *SSHController) tryLoginWithoutCache(user string) { |
| 50 | combinations := config.GenerateCombination(sc.targetIP, user, sc.configuration) |
no test coverage detected