PVE only uses SSH to connect to hosts when accessing them from another host (e.g, if pve1000's IP is 10.50.0.2 and pve2000's IP is 10.50.0.3, PVE will only use SSH to connect to pve2000 if you connect to the UI through https://10.50.0.2:8006).
By connecting to the UI through pve2000's IP, you should be able to access the shell and fix your SSH config.