I started with Proxmox on an Intel NUC, and created a VM for Home Assistant with qcow2.
This is running very well. But i would like to access my HA VM via ssh, like i do with my RPi4 install.
So i tried to install SSH & Web Terminal in Supervisor Ad-on-Store. But this add-on is not available (perhaps for this config with Proxmox VE?)
So i tried to find an other solution eg on the Proxmox forum; Perhaps i could configure the VE to have ssh enabled.
But i could not find a way how to do this. Has anyone an idea hoe to implement ssh HA/Proxmox VE?
To be clear, I am able to access the Proxmox VE Server via ssh (putty) from an other laptop in my local network, but i am not able to access a VM running qcow2 on this server with ssh from this same laptop
@tom_l Thank you for your reaction.
Yes, how stupid if me, that i have to run into this…
Sorry for bothering everyone with my silly mistake. I should have checked that! But i installed already several ad-ons when i run into this.
I have still issues with SSH to the VM of HA. The install of the addon went flawlessly. I configured the addon with a public key which i generated in Windows. Looking in the log of the addon it seems that this part is also OK.
But the log ends with an error message:
[09:59:39] WARNING: SSH port is disabled. Prevent start of SSH server.
I am sorry but this is in German language. But halfway i find that there should be an /etc/ssh/sshd_config where one should set: PermitRootLogin yes
But in the VM i used for Home Assistant with the qcow2 installation there is no ssh installed in the VM
(there is no /etc/ssh directory).
So i created a new VM using an image of Ubuntu 12.04 TLS.
And when i go (via the Proxmox GUI) to the Console, i see in this install there is ssh supported and i am able to login from an other machine in my network to this Ubuntu VM.
For HA in a Proxmox VM I used the script from @whiskerz007. Perhaps there is something missing in the VM created by the script from @whiskerz007.
Or it must be possible to add ssh support to an existing VM? But i have no idea how…
Or could it be that there is no ssh support in the qcow2 install? I have no idea…
EDIT. No there is nothing wrong with @whiskers007 script nor with the qcow2 install.
But i still can not get access with putty to the HA VM.
Trying to install the qcow2 install on an Debian or Ubuntu VM at which have already ssh access to.
Still searching for a solution…
EDIT. No there is nothing wrong with @whiskers007 script not with the qcow2 install.
But i still can not get access with putty to the HA VM.
Trying to install the qcow2 install on an Debian or Ubuntu VM at which have already ssh access to.
Still searching for a solution…
@Romkabouter Thank you for your reaction!
And yes i was aware of that, and i am using that for now. But i would like to access this VM hassos instance also via putty from any device in my network. Keep in mind, i am new to proxmox, so still learning.
I created two other VM’s (Ubuntu and Debian 10) and with these i am able to ssh into them. So i would like to do that with the hassos VM also. The same as i am used to with my RPi install.
I created a key-pair on my windows machine and placed the public key of that in the config of the Terminal & SSH configuration of the hass addon. Now if i open a putty session, i’l get a login screen. But as soon as i enter the login name i’l get a connection refused message.
So i think it has to do with the mutual authentication ,
Yes i know, and that was what i did. Otherwise i would never had the login prompt when i connect to the VM instance… No that is not the problem, it is on de VM itself.
With port 22 set and no ssh key in the addon conficuration i get this error message:
If this is the right file, i have to look how i can add the public key from my Windows 10 machine.
But this should actually not been nessecary. My both other VM’s (Debian and Ubuntu) permit ssh login without this configuration.
I think this is somehow configured in the QCOW2 image.
Maybe @whiskers007 knows how this is configured. He used this in his qcow2 install script.