新建用户报错

30次浏览 0人关注 复制链接 所属标签: 新建argo用户报错

[root@ark1 go]# bin/python3 tools/pre.py -u argo
2021-11-05 17:42:13,027-INFO:ark1.analysys.xyz : useradd argo with sudo permission
2021-11-05 17:42:43,590-INFO:ark1.analysys.xyz : argo gen_key
2021-11-05 17:42:44,151-INFO:ark1.analysys.xyz : copy pub_key form argo to local:
Traceback (most recent call last):
File "tools/pre.py", line 137, in <module>
base.run_copy(host_infos['IP'],'files/key/key_%s'% host,'.ssh/id_rsa.pub',False,new_user,new_user_passwd,None,host_infos['PORT'],False)
File "/root/go/common/pycommon/utils/base.py", line 478, in run_copy
raise e
File "/root/go/common/pycommon/utils/base.py", line 469, in run_copy
tran.connect(username=user,password=passwd)
File "/root/go/env/python3/lib/python3.6/site-packages/paramiko/transport.py", line 1336, in connect
self.auth_password(username, password)
File "/root/go/env/python3/lib/python3.6/site-packages/paramiko/transport.py", line 1509, in auth_password
return self.auth_handler.wait_for_response(my_event)
File "/root/go/env/python3/lib/python3.6/site-packages/paramiko/auth_handler.py", line 250, in wait_for_response
raise e
paramiko.ssh_exception.AuthenticationException: Authentication failed.
[root@ark1 go]# 




pre.log

2021-11-05 17:42:43,590-INFO:ark1.analysys.xyz : argo gen_key
2021-11-05 17:42:43,750-DEBUG:no passwd
2021-11-05 17:42:44,151-INFO:ark1.analysys.xyz : copy pub_key form argo to local:
2021-11-05 17:42:45,845-DEBUG:Authentication failed.

请问怎么解决

暂无回答