一、配置ntp时间服务器,确保客户端主机能和服务主机同步时间
1、查看客户端主机的时间
[root@node ~]# timedatectl
Local time: 二 2024-01-23 17:01:23 CST
Universal time: 二 2024-01-23 09:01:23 UTC
RTC time: 二 2024-01-23 14:47:14
Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
3、修改服务端配置文件
[root@server ~]# vim /etc/chrony.conf
server ntp.aliyun.com iburst
[root@server ~]# systemctl restart chronyd
[root@server ~]# vim /etc/chrony.conf
26 allow 192.168.37.145/24
[root@server ~]# systemctl restart chronyd
4.修改客户端配置文件
[root@node ~]# vim /etc/chrony.conf
server 192.168.37.144 iburst
[root@node ~]# systemctl restart chronyd
[root@node ~]# timedatectl status
Local time: 二 2024-01-23 17:01:37 CST
Universal time: 二 2024-01-23 17:01:37 UTC
RTC time: 二 2024-01-23 14:08:38
Time zone: Asia/Shanghai (CST, +0800)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
二、配置ssh免密登录,能够通过客户端主机通过redhat用户和服务端主机基于公钥验证方式进行远程衔接
1、定位服务端
2、定位服务端
3.验证