1.配置ntp时间服务器,确保客户端主机能和服务主机同步时间
#查看软件程序是否安装
[root@server ~]# rpm -qa | grep chrony
chrony-4.1-1.el8.x86_64
#查看是否运行
[root@server ~]# systemctl is-active chronyd.service
active
#修改配置文件
[root@server ~]# vim /etc/chrony.conf
[root@server ~]#
#允许客户端
allow 192.168.75.136
#关闭防火墙
[root@server ~]# systemctl stop firewalld
#关selinux
[root@server ~]# setenforce 0
#重启
[root@server ~]# systemctl restart chrony
#修改配置文件
[root@client ~]# vim /etc/chrony.conf
pool 192.168.75.135 iburst
#重启
[root@client ~]# systemctl restart chronyd
2.配置ssh免密登陆,能够通过客户端主机通过redhat用户和服务端主机基于公钥验证方式进行远程连接
#在客户端生成密钥对
#复制该公钥文件到服务端的该目录下
[root@client ~]# ssh-copy-id -i 192.168.75.136
#切换至普通用户登录
[xscz@client root]$ ssh root@192.168.75.136