Open xuedihualu opened 8 years ago
ZStack currently support SSH key injection through cloud-init. The injection method could be referred from http://zstack.org/blog/v1.0.html#userdata http://zstack.org/blog/v1.2.html#userdata http://zstack.org.cn/index.php?m=Article&a=show&id=271
The right way to use ssh key injection. You just need 2 steps:
the systemtag part is the ssh key to be injection.
thxs, My virtual machine is created, so the following operation is performed CreateSystemTag resourceUuid=7859bc697e374daebb2e29821ead396a resourceType=VmInstanceVO tag='sshkey::ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFlY2rFhOCBaPgDvtDMrw73R+9irIL489kMJ/w05llaobSPERfci4Rb2GdY8QeNCwwFicvyXGtF0WZ6T3YtBKvJIxS364pD1v+4g4Y+7+KZZ1PBcZPY2zSWA0zdwDY1EMHvumeajcYX3iMp0yjICRZ0KOkdlilYDS3w/i2knkVVh26UnxBzKn7HK/PPNjmaIPoa16Aqo/bt+CT9sEtzOR/IdkgE9v3Gs1C5T3uwWWnwZsO4E6v9iC9Bz8Q7Fd7HALwuUUUo37J1/YVASlhqk8gKBXX+viny8N9N+2Ec6MgOhx26C5Bu0gLrfZPJu3qq1TI0UkRZyEaz65W9ulRBP27 root@docker-130.com' But I still can't login error [root@docker-130 .ssh]# ssh root@192.168.10.207 Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
After create systemtag, you need:
sorry,Do not know the password, can not enter the virtual machine
windows注入密码的systemTags中的字段是什么?
windows和linux是一样的,只是你需要在Windows里面预先安装CloudInit
谢谢! 我在windows上面装好cloud-init之后转成模板,那么请问之后创建云主机的时候需要指定systemTags也是systemTags='sshkey::ssh-rsa 用户密码 用户名'吗?ssh-rsa这个系统标签名称也适用在windows的userdata吗?
@694982827 我不认为sshkey支持 Windows登录,相关信息可以查询 cloud-init的使用方式
希望增加在成功安装云主机后如何免密码登录或者,如何指定初始的密码