[HELP] unable to copy ssh ID

vzfanatic

Active Member
Jul 22, 2008
67
0
26
hi there,

I have 4 servers, one master (192.168.1.1), and i did 'pvecm create group', which worked without error. then i went to server 2 (192.168.1.2) and said 'pvecm add 192.168.1.1' and i get the error 'unable to copy ssh ID'. this server 2 is a fresh install from proxmox2 iso.

pvecm status on server 2 says ' cman_tool: Cannot open connection to cman, is it running ?'

/etc/init.d/cman status gives empty result
/etc/init.d/cman restart gives empty result.

aptitude install cman says;
Remove the following packages:
1) clvm
2) corosync-pve
3) fence-agents-pve
4) libcorosync4-pve
5) libopenais3-pve
6) libpve-access-control
7) libpve-storage-perl
8) openais-pve
9) proxmox-ve-2.6.32
10) pve-cluster
11) pve-manager
12) qemu-server
13) redhat-cluster-pve
14) resource-agents-pve
15) vzctl

which im sure i don't want to do.

i tested for multicast capabilities, and all answered as expected.

this is clean install on the three nodes, and no containers, so i can't understand why cman doesnt run, and why there is error on adding. i am using ssh on port 2222 if it matters.

id appreciate some ideas, ive googled the heck out of this.

thank you
 
What is the output of

# pveversion -v

What is the cman status on 192.168.1.1:

# pvecm status
 
192.168.1.1
_____________
pve-manager: 2.1-13 (pve-manager/2.1/bdd3663d)
running kernel: 2.6.32-13-pve
proxmox-ve-2.6.32: 2.1-72
pve-kernel-2.6.32-11-pve: 2.6.32-66
pve-kernel-2.6.32-13-pve: 2.6.32-72
pve-kernel-2.6.32-12-pve: 2.6.32-68
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.3-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.92-2
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.8-1
pve-cluster: 1.0-27
qemu-server: 2.0-47
pve-firmware: 1.0-17
libpve-common-perl: 1.0-28
libpve-access-control: 1.0-24
libpve-storage-perl: 2.0-29
vncterm: 1.0-2
vzctl: 3.0.30-2pve5
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 1.1-6
ksm-control-daemon: 1.1-1

----
pvecm status
----
Version: 6.2.0
Config Version: 1
Cluster Name: (hidden)
Cluster Id: 6591
Cluster Member: Yes
Cluster Generation: 16
Membership state: Cluster-Member
Nodes: 1
Expected votes: 1
Total votes: 1
Node votes: 1
Quorum: 1
Active subsystems: 5
Flags:
Ports Bound: 0
Node name: server1
Node ID: 1
Multicast addresses: (hidden)
Node addresses: (hidden)
____________
192.168.1.2
____________
running kernel: 2.6.32-13-pve
proxmox-ve-2.6.32: 2.1-72
pve-kernel-2.6.32-11-pve: 2.6.32-66
pve-kernel-2.6.32-13-pve: 2.6.32-72
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.3-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.92-2
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.8-1
pve-cluster: 1.0-27
qemu-server: 2.0-47
pve-firmware: 1.0-17
libpve-common-perl: 1.0-28
libpve-access-control: 1.0-24
libpve-storage-perl: 2.0-29
vncterm: 1.0-2
vzctl: 3.0.30-2pve5
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 1.1-6
ksm-control-daemon: 1.1-1

----
pvecm status
----
cman_tool: Cannot open connection to cman, is it running ?
 
That node is still not added to the cluster (add failed), so that is OK.

What if you run the following on 192.168.1.2:

# ssh-copy-id 192.168.1.1

says;
port 22: Connection refused

I change the port on the servers to increase security. if i tell it what port, the answer is;
Pseudo-terminal will not be allocated because stdin is not a terminal.
ssh: Could not resolve hostname umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys: Name or service not known

If i ping the name or ip, the answer is icmp_req=1 ttl=64 time=0.121 ms

I'm going to change the port back to 22 in the meantime and see if that helps my problem.
 
yes, that was what's wrong, after changing to port 22 it was able to be added to the cluster :-(

Is there someway to use non-standard port? I hate that hackers bang away at port 22 cause they know it's ssh.

cheers
 
Just add a ssh config for your cluster master:

cat /root/.ssh/config
Host mymaster
HostName 10.0.0.1
Port 10022
IdentityFile /root/ssh/id_rsa


The run pvecm add mymaster
 
I have the same problem. When i try the option ssh-copy-id <Master IP> i get the following error.

/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed

/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys

root@IP's password:

cat: write error: Permission denied
 

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!