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
 
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 can ping to ping 192.168.1.2 from ping 192.168.1.3

cat /etc/ssh/sshd_config
1700819870007.png
 
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?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!