BassT23/Proxmox

Error SSH Authentication

Closed this issue · 5 comments

Hi! First of all: Thank you very much for this great project! This saved me a lot of time :)

My problem is I want to update a VM on a second Node on my cluster. So I followed your ssh instructions and the connection should be fine. So what I have done is (vmid -> 300 | VM IP -> 192.168.123.12 (dummy)):

(ssh Server is already installed on VM an PermitRootLogin is activated)
On Host:

  1. added seconed node IP in "hosts"
  2. create file under /root/Proxmox-Updater/VMs/300 -> with content: IP="192.168.123.12"
  3. ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.123.12 -> .pub was transferd and I can SSH to the VM with "ssh root@192.168.123.12" without any problems or passwords.

When I now start "update" it gives me the error:
"File for ssh connection found, but not correctly set? Please configure SSH Key-Based Authentication"

I hope you could help me find a solution and thank you very much for your efforts!

Hi @WurstKarate
Did you make step 3. from the host you run the VM on?

Background: for the following hosts (not that one on which you start the script) the needed files were copy to. So the host, on which the LXCs and VMs are hosted, run the code. So you need to authenticate from that host.

For testing; run ssh root@<VMIP> uptime from the host, who hosted the VM. When there comes no error, the script should work ;)
Otherwise let me know :)

Hi! Thank you very much for your fast response!

My Setup is:

  • XY-Cluster (2nodes)
    -- pve1 | 192.168.123.121 (node1) -> Host for Proxmox Updater where i did step 3 from
    --- VM 100 etc.
    -- pve2 | 192.168.123.120 (node2)
    --- VM 300 | 192.168.123.12 -> destination

ssh root@192.168.123.12 uptime from pve1 is giving me "15:41:15 up 21:14, 1 user, load average: 0.00, 0.00, 0.06"

Thank you very much for your help!

I think VM100 work well for you.
VM300 makes problems.
Make the authentication for VM300 not on pve1. Make Authentication (step 3) from pve2 ;)

Thank you so much! That did the trick!

Please continue your great work and have a nice day!

Thanks for feedback.
Will add that info in the readme ;)