connect ssh to a VM from a desktop : "Permission denied (publickey).

maknho

New Member
Jun 10, 2024
1
0
1
Hello everyone,
I have installed Proxmox VE yesterday and a VM. I can access to the shell of the VM inside PVE but I cant ssh from my desktop : "Permission denied (publickey)."
I don't know if it's relevant but cloud-init (and the "ssh public key" section so) is disabled.
I tried to put in /etc/network/interfaces
post-up iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 32768 -j DNAT --to 172.32.0.53:22
post-down iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 32768 -j DNAT --to 172.32.0.53:22
But it was changing nothing.
Is there a special configuration to set in PVE ? An option to enable ?
Thks a lot by advance

EDIT : it works ! I don't know why :( I add a user maybe it is that ?
 
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!