U 优化验证主机提示信息

4.0
vapao 2022-10-12 21:46:31 +08:00
parent fdd153a090
commit fa63a70344
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: