ssh attempt

This commit is contained in:
Robin Appelman 2024-02-01 22:24:58 +01:00
commit 47335719f3

View file

@ -82,7 +82,9 @@ impl SshSession {
sleep(Duration::from_secs(1)).await; sleep(Duration::from_secs(1)).await;
match SshSession::open_impl(ip, auth).await { match SshSession::open_impl(ip, auth).await {
Ok(ssh) => return Ok(ssh), Ok(ssh) => return Ok(ssh),
Err(SshError::ConnectionTimeout | SshError::Refused) => {} Err(
SshError::ConnectionTimeout | SshError::Refused | SshError::Unauthorized,
) => {}
Err(e) => return Err(e), Err(e) => return Err(e),
} }
} }