Change SSH port on Proxmox VE cluster

bryambalan

Member
Jul 25, 2020
8
0
6
26
Hi guys, I have the following problem:

I wanted to change the default SSH port from 22 to 2222, and I was able to do so by editing the sshd_config files.

However, even after changing the SSH port, when I try to migrate a VM between NODE_X and NODE_Y using ProxMox, it still uses port 22 and the command fails.

I tried changing it in the ssh_config file as well, but ProxMox still uses port 22 for VM migration.

I would like to know if there is any configuration that needs to be done in the ProxMox configuration files to change the default SSH port and make it work when migrating a VM between nodes.
 
From the top of my head:
you need to configure your SSH client (/root/.ssh/config) as well and set special entries for the IP and the hostname of your other nodes, e.g.

Code:
Host proxmox1 proxmox2 proxmox3
    Port 2222
 
  • Like
Reactions: dar_ek

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!