unable to copy ssh ID pve-manager 4.1

Mn1sh

New Member
Mar 6, 2016
20
0
1
41
Hello,

I am new to proxmox and got stuck in following error.


Three proxmoxVE server setup with each having non standard ssh port. When i try to add second node to cluster (should be same for third node ) , I see the error:

unable to copy ssh ID


Are you bound to use ssh port 22?


There is reference for all three server in /etc/hosts file of each of the servers.



Note: Ip Changed here ( against original )
########################################################
root@pm2:~# pveversion
pve-manager/4.1-1/2f9650d4 (running kernel: 4.2.6-1-pve)
root@pm2:~#
same version on 3 servers.


root@pm1:~# pvecm status
Quorum information
------------------
Date: Sun Mar 6 16:14:00 2016
Quorum provider: corosync_votequorum
Nodes: 1
Node ID: 0x00000001
Ring ID: 4
Quorate: Yes

Votequorum information
----------------------
Expected votes: 1
Highest expected: 1
Total votes: 1
Quorum: 1
Flags: Quorate

Membership information
----------------------
Nodeid Votes Name
0x00000001 1 192.168.0.1 (local)
root@pm1:~#



root@pm2:~# pvecm add 192.168.0.1
unable to copy ssh ID
root@pm2:~#



Please advise.
 
Hi,

Quoting a wiki page I'm currently writing:

You have to edit two files per Node.

  • nano /etc/ssh/ssh_config
Here add a new line with:

Port <PORT-NO>

Do not forget to replace <PORT-NO> with your chosen port, replace also the <>.

  • nano /etc/ssh/sshd_config
Port <PORT-NO>

Here change the Port line so that it matches the one from ssh_config, both must be the same, as the cluster uses these with no port parameter so the default from sshd (= server) and ssh (= client) must match!

Now restart the ssh service for all nodes:

systemctl restart ssh

And you're done.

To connect now to your node via ssh from outside you need to pass the port as parameter (or change the default port int the ssh client config):

ssh -p <PORT-NO> root@<IP>

We are not bound to port 22, but SSH is needed for the cluster to work, and we use a basic
Code:
ssh ..@other-node -- command
connections, so to make those work with a different port you have to edit also the client config of the nodes to match the one you use for the server.
And if you add a new Node then change the port before adding it.
 

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!