can't ssh into a Ubuntu vm

Juliet

Member
Oct 24, 2023
55
0
6
HI,
I have just installed an Ubuntu VM, it works as expected, but when I try to SSH to it, I got this error :
1700816777387.png


Do I have to do some extra conf to resolve this issue please ?
 
With Ubuntu you usually need to install an SSH server and run it in order to be able to connect via SSH.
 
Are you able to ping the respective machine?

How does the network configuration of the VM look like?

Code:
cat /etc/network/interfaces
ip a
ip route show
 
Are you able to ping the respective machine?

How does the network configuration of the VM look like?

Code:
cat /etc/network/interfaces
ip a
ip route show
ip route show :
1700818064410.png

cat /etc/netplan/50-cloud-init.yaml

1700818157333.png

ip a;
1700818271154.png

HER4S THE conf above :
 
Last edited:
It seems like the IP of the VM is 192.168.1.3 but you are trying to connect to 192.168.1.2
 
Did you try pinging the VMs? Is this possible?

Code:
ping 192.168.1.2

How does your SSH config look like?

Code:
cat /etc/ssh/sshd_config
 
I have just noticed that I cant ping to it from the proxmox network, for example when I try from my windows machine Icant ping to it
Then it seems like the connection from your Windows machine to your Proxmox VMs is broken. Does the Windows machine have an IP in the same subnet? How does the network configuration look there. Do you have any firewalls in between?