surfuga / elkpi

Ansible playbook for ELK deployment on Raspberry pi
19 stars 16 forks source link

ssh error #1

Open Xusqui opened 5 years ago

Xusqui commented 5 years ago

I was trying your script, but I got some errors...

  1. ansible must be installed, so 1st step is a sudo apt-get install ansible

  2. Clone your git: git clone https://github.com/surfuga/elkpi/

  3. Change hosts. to match your Raspberry pi's IP address

  4. I had a ssh login error:

fatal: [192.168.1.11]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n", "unreachable": true}

so I had to enable ssh log-in without password and make public and private keys: $ cd /home/pi/.ssh $ touch authorized_keys $ chmod 0644 ./authorized_keys $ ssh-keygen $ ssh-copy-id -i ./id_rsa.pub RASPBERRY's_IP_ADDRESS type password

Now you can edit /home/pi/elkpi/vars/vars-rpi.yml to get your desired versions (6.5.1 at the writing time of this issue)

Anf finally you can run: ansible-playbook -i hosts elk-rpi.yml

jogalt commented 4 years ago

I had the same issue you did. I found a workaround online that will allow you to put your password in once the playbook starts. The parameters have been added to my fork.