Cannot access VM from another VM via SSH

Nixtis

New Member
Oct 14, 2017
1
0
1
35
Hello everyone,

I have been looking for a response since 2 days and didn't found any help yet.

I have a Proxmox 5 with a node. Inside this node I have a VM and a CT with both Ubuntu 16.04. Both VM and CT are configured with IP Fail over from OVH, everything is ok. I can access to my apps from outside and I can connect via SSH to both via any computer. But they can't connect via SSH to each other. They can ping correctly but no SSH. I need them to comunicate via SSH because I need to transfert some files via SCP.

Did I forgot something ?

They are both networked by the default OVH vmbr0

VM 1 :

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address XXX.XXX.XXX.XXX
netmask 255.255.255.252
network XXX.XXX.XXX.XXX
broadcast XXX.XXX.XXX.XXX
gateway XXX.XXX.XXX.XXX
dns-nameservers XXX.XXX.XXX.XXX

CT 1 (use host dns) :

auto lo
iface lo inet loopback
iface lo inet6 loopback

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto eth0
iface eth0 inet static
address XXX.XXX.XXX.XXX
netmask 255.255.255.252
gateway XXX.XXX.XXX.XXX

I really don't know what's wrong. Everything works fine... I can access via SSH from my computer but The both VM/CT cannot each other.
 
if the 2 machine can ping each, check that the ssh port is open with a port scanner

from machine A

nmap -p ssh IP_of_machine_B
 

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!