优化验证主机提示信息

pull/586/head
vapao 2022-10-31 17:05:39 +08:00
parent dc7340e24a
commit 0fe0b50da0
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ def _do_host_verify(form):
with SSH(form.hostname, form.port, form.username, password=password) as ssh:
ssh.add_public_key(public_key)
except BadAuthenticationType:
raise Exception('该主机不支持密钥认证请参考官方文档错误代码E01')
raise Exception('该主机不支持密码认证请参考官方文档错误代码E00')
except AuthenticationException:
raise Exception('密码连接认证失败,请检查密码是否正确')
except socket.timeout: