Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh error #1

Open
Xusqui opened this issue Dec 2, 2018 · 1 comment
Open

ssh error #1

Xusqui opened this issue Dec 2, 2018 · 1 comment

Comments

@Xusqui
Copy link

Xusqui commented Dec 2, 2018

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
Copy link

jogalt commented Oct 3, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants