etursunbaev / ceph-cluster

Deployment of Ceph Cluster on Virtual machines
0 stars 0 forks source link

SSH access providing #1

Closed etursunbaev closed 6 years ago

etursunbaev commented 6 years ago

At this moment I faced providing ssh access to each node. Manually it works but cannot provide access in playbook or with script.

etursunbaev commented 6 years ago

There are several ways to solve this issue.

  1. Change password of root. It has no password and in /etc/ssh/sshd_config PermitRootLogin is prohibited. Also need to PermitRootLogin to yes and PasswordAuthentication to yes. In test env I think it's ok, but not for industrial cases.
  2. Manually distribute pub key to each node which is not good for automation and will lead to separate playing playbooks.

I'm stuck in this

control: /usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system.
    control:        (if you think this is a mistake, you may want to use -f option)
    control: /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
    control: /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
etursunbaev commented 6 years ago

Find out another solution.