47.100.162.168:6379> config set dir /root/.ssh OK 47.100.162.168:6379> config get dir 1) "dir" 2) "/root/.ssh" 47.100.162.168:6379> config set dbfilename "authorized_keys" OK 47.100.162.168:6379> save OK 47.100.162.168:6379> exit
这个时候,我们登录远程主机看下效果。
1 2 3 4 5 6 7 8 9
[root@iZbp16ix79aknv9fhzijnkZ .ssh]# ssh -i id_rsa root@192.168.243.129 The authenticity of host '47.100.162.168 (47.100.162.168)' can't be established. ECDSA key fingerprint is SHA256:TK5d6O4ku0kDFkS6YVXU9oTVqNlrDZtKO5W1N5FfF1k. Are you sure you want tocontinue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '47.100.162.168' (ECDSA) to the list of known hosts. Last login: Thu Jul 1118:12:342019from27.115.27.22
Welcome to Alibaba Cloud Elastic Compute Service !