Hi,Hi Chris,
the client is windows 11 i have made the key with puttygen
when I look at pve /etc/ssh i do not see authorized_keys
thanks for any help
/root/.ssh/authorized_keys
file on the PVE host (make sure there is a newline after the existing keys). The run pvecm updatecerts
, which merges the newly added key also to /etc/pve/priv/authorized_keys
, relevant for PVE.Thanks for this - it looked easy, even for me. I believe I've followed the video to a T; here's what I've done:If anyone else needs this information, @JayLaCroix
has a video here: ProxMox Create SSH Key Pairs
The only thing I noticed is that finding the private key in putty is slightly different from the video.
The path is:
Connection > SSH > Auth > Credentials
Another user here on ProxMox forum has asked an identical question > How to add own ssh key for root user
Also, I'm not sure what the comments about WinSCP are about? I used Putty with the PuttyGen that downloads with Putty on Win 11.
It was a very fast and easy
/etc/pve/priv/authorized_keys
file. There is one other pub key in there already (I didn't put it there, this is a fresh install of Proxmox)Server refused our key error
like this: ls -l ~/.ssh
command below shows (I think?) the location of the authorized_keys
fileroot@pve:~# ls -l ~/.ssh
total 12
lrwxrwxrwx 1 root root 29 Jan 7 05:57 authorized_keys -> /etc/pve/priv/authorized_keys
-rw-r----- 1 root root 117 Jan 7 05:57 config
-rw------- 1 root root 1811 Jan 7 05:57 id_rsa
-rw-r--r-- 1 root root 390 Jan 7 05:57 id_rsa.pub
authorized_keys
file called id_rsa
and id_rsa.pub
. Asuume I should just leave these alone?