Problem to access VPS via SSH

  • Thread starter Thread starter Cyber
  • Start date Start date
C

Cyber

Guest
Hello,

I have installed proxmox successfully on a server with existing debian lenny.
And I have configured network based on proxmox wiki and tutorials and created one VPS.
I have one network card and 5 IPs.
Here is a part of my /etc/network/interfaces:

Code:
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address xx.xx.xx.242
        netmask 255.255.255.0
        network xx.xx.xx.0
        broadcast xx.xx.xx.255
        gateway xx.xx.xx.1


allow-hotplug eth1
iface eth1 inet static
        address xx.xx.xx.243
        netmask 225.225.225.0
        network xx.xx.xx.0
        broadcast xx.xx.xx.255
        gateway xx.xx.xx.1

auto vmbr1
iface vmbr1 inet static
        address xx.xx.xx.243
        netmask 225.225.225.0
        gateway xx.xx.xx.1
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0

I have created a VM with centos-5 template and using vmbr1. everything looks ok.

but when I try to root access to VPS with IP: xx.xx.xx.243, user: root and specified password, it seems SSH Client is not connecting to VPS and my password is not accepted.

It connecting to main server and I can login with username: root and main server's root password.
Also http:// xx.xx.xx.243 in browser is going to proxmox default page.


Would you please help me about this problem?

Thank you
 
Last edited by a moderator:
eth1 is used as bridge port for vmbr1. So you cant assign a network address to eth1. It is allso difficult to tell what xxx.xxx.xxx is - is it always the same address?
 
Thanks for reply.

I just removed this part:

Code:
allow-hotplug eth1
iface eth1 inet static
        address xx.xx.xx.243
        netmask 225.225.225.0
        network xx.xx.xx.0
        broadcast xx.xx.xx.255
        gateway xx.xx.xx.1

Rebooted the server and even recreated the VPS but I still have the problem.:confused:

Yes xx.xx.xx is always the same and is starting with 74.
If this might help I can send the IPs in private message.

Thank you
 
Code:
auto vmbr1
iface vmbr1 inet static
        address xx.xx.xx.243
        netmask 225.225.225.0
        gateway xx.xx.xx.1
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0

Are you sure netmask '225.225.225.0' is right (should be 255.255.255.0)?

Also, you have 2 interfaces in the same network (eth0 and vmbr1) - this will never work.
 
Hello,

Sorry, it is 255, I typed it wrongly here when I changed xxx for netmask.

Yes as I said in first post, I have only one network interface card. So how can I create or config my VPSs?

Would you please post a sample configuration?

I'll really appreciate that.
Thank you
 
Yes as I said in first post, I have only one network interface card.

So why do you configure two?

So how can I create or config my VPSs?

you use the bridge.

Would you please post a sample configuration?

The standard config is:

Code:
auto lo
iface lo inet loopback
 
auto vmbr0
iface vmbr0 inet static
        address xx.xx.xx.243
        netmask 225.225.225.0
        gateway xx.xx.xx.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
 

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!