cloud-init - ssh key

Klekele

Member
Jul 6, 2022
17
0
6
Hi,

i have configured a template with cloud-initwith user/pass/dns/ip,.. and for public ssh key i have none, once the VM boots and i want to ssh i always get: Permission denied (publickey).

Is there a possibility to disable ssh key and only use user/pass? (i know its not a good practice, but i would really need to have this option.

Thanks for your replys!
 
Can you do it? Yes
How? It depends on the template and why the password authentication is prohibited. I am going to assume the most likely reason - it is disabled in /etc/ssh/sshd_config.

Did you create the image yourself from scratch? If yes, modify the sshd_config to allow the password modification and rebuild the image.
Did you use one of the major Cloud Images? If yes, either use image modification commands to change the config, or use custom cloud-init file to modify the sshd config on boot.
You cannot use limited built-in PVE cloud-init to change it.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
thanks for fast reply im using major cloud images, so witch command do i need to use to reconfigure this ssh?
 
thanks for fast reply im using major cloud images, so witch command do i need to use to reconfigure this ssh?
or use custom cloud-init file to modify the sshd config on boot.
https://forum.proxmox.com/threads/h...entication-in-cloud-init-configuration.60014/
Keep in mind the built-in and custom user-data are not added to each other. If you start using custom cloud-init you will need to specify everything in it.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!