标签:key 技术 lin home exist with __init__ ppi src
grep authorized_keys cloud-init*log
正常请况下
grep authorized_keys cloud-init*log
[root@sysu--2 log]# grep centos cloud-init*log 2019-10-22 02:14:17,322 - __init__.py[INFO]: User centos already exists, skipping. 2019-10-22 02:14:17,323 - util.py[DEBUG]: Running command [‘passwd‘, ‘-l‘, ‘centos‘] with allowed return codes [0] (shell=False, capture=True) 2019-10-22 02:14:17,355 - util.py[DEBUG]: Restoring selinux mode for /home/centos/.ssh (recursive=True) 2019-10-22 02:14:17,356 - util.py[DEBUG]: Reading from /home/centos/.ssh/authorized_keys (quiet=False) 2019-10-22 02:14:17,356 - util.py[DEBUG]: Read 0 bytes from /home/centos/.ssh/authorized_keys 2019-10-22 02:14:17,357 - util.py[DEBUG]: Restoring selinux mode for /home/centos/.ssh (recursive=False) 2019-10-22 02:14:17,357 - util.py[DEBUG]: Writing to /home/centos/.ssh/authorized_keys - wb: [600] 399 bytes 2019-10-22 02:14:17,357 - util.py[DEBUG]: Restoring selinux mode for /home/centos/.ssh/authorized_keys (recursive=False) 2019-10-22 02:14:17,358 - util.py[DEBUG]: Restoring selinux mode for /home/centos/.ssh/authorized_keys (recursive=False) 2019-10-22 02:14:17,358 - util.py[DEBUG]: Changing the ownership of /home/centos/.ssh/authorized_keys to 1000:1000 2019-10-22 02:14:17,358 - util.py[DEBUG]: Restoring selinux mode for /home/centos/.ssh (recursive=True) 2019-10-22 02:14:38,400 - util.py[DEBUG]: Restoring selinux mode for /home/centos/.ssh (recursive=True) 2019-10-22 02:14:38,401 - util.py[DEBUG]: Reading from /home/centos/.ssh/authorized_keys (quiet=False) 2019-10-22 02:14:38,401 - util.py[DEBUG]: Read 399 bytes from /home/centos/.ssh/authorized_keys
调试cloud init
[root@fenghuo log]# rm -rf /var/lib/cloud/instance [root@fenghuo log]# cloud-init init && cloud-init modules --mode config && cloud-init modules --mode final
标签:key 技术 lin home exist with __init__ ppi src
原文地址:https://www.cnblogs.com/dream397/p/12931265.html