点击查看代码
登出
Connection to clone1 closed.
[root@master .ssh]# ll
总用量 16
-rw-rw-r--. 1 root root 393 4月 9 09:23 authorized_keys
-rw-------. 1 root root 1679 4月 7 19:16 id_rsa
-rw-r--r--. 1 root root 393 4月 7 19:16 id_rsa.pub
-rw-r--r--. 1 root root 717 4月 7 21:18 known_hosts
[root@master .ssh]# chmod 600 authorized_keys
[root@master .ssh]# service sshd restart
Redirecting to /bin/systemctl restart sshd.service
[root@master .ssh]# ssh master
Last failed login: Tue Apr 9 09:24:10 CST 2024 from master on ssh:notty
There were 2 failed login attempts since the last successful login.
Last login: Tue Apr 9 09:21:22 2024 from master
[root@master ~]# exit
登出
Connection to master closed.