installation on different ssh port
Hi,
I have installed CC & now just trying to do the ssh password bit. I am using a port other that 22. when I try to the
ssh
-copy-
id
-i ~/.
ssh
/id_rsa
[ClusterControl IP address] -p xxxx
but it still trys on 22
I also tried putting th -p xxxx after -I still no joy. help? :) how do I tell it to use a different port?
Thanks
-
Official comment
Hi,
Can you try and do:
ssh
-copy-
id
-oPort=xxxx [ClusterControl IP address]
However, you *must* also setup password less SSH between the controller and the data nodes you wish to use in the cluster. The above will only do it between the computer you are executing the command on and to the [ClusterControl IP address].THanks
johan
Comment actions -
For me it looks like this:
ssh-copy-id -oPort=2222 10.10.10.10
/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: ERROR: ssh: connect to host 10.10.10.10 port 2222: Connection refused
When i have executed the cmd (now there is no sshd on port 2222, hence the conn refused). -
ps.. Im following this
http://severalnines.com/getting-started
on step 3
-
Hi,
Please double check you really have an identitiy file:ls
~/.
ssh
/id_rsa
Else re-runssh-keygen -trsa
just press enter on any question (or 'yes' to overwrite in case of overwriting an existing).
What output do you get from the ssh-keygen program? Can you paste it here (except any key data)?
And thenssh-copy-id -oPort=9898 101.101.101.1
BRjohan
-
Hi, had already done the renew key, but i`ll do it again..
/root/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:<rest snipped> root@xxxx.xxxx
The key's randomart image is:
+--[ RSA 2048]----+
| .o o..oo |
| * ... |
| o o o |
| + . + o |
| = = E |
| . = + o |
| + . . |
| o |
| |
+-----------------+
[root@cluster ~]# ssh-copy-id -i -oPort=1886 xxx.xxx.xxx
/usr/bin/ssh-copy-id: ERROR: No identities found
[root@cluster ~]# -
Hi,
[root@cluster ~]# ssh-copy-id -i -oPort=1886 xxx.xxx.xxx
/usr/bin/ssh-copy-id: ERROR: No identities found
[root@cluster ~]#here you specify -i , but no path to the file, so i believe that is why it complains.
Please do (taking out the -i ):
ssh-copy-id -oPort=1886 xxx.xxx.xxx
Do you have different SSH ports on the different servers?
BRjohan
Please sign in to leave a comment.
Comments
14 comments