目录
一、配置ntp时间服务器,确保客户端主机能和服务主机同步时间
二、配置ssh免密登陆,能够通过客户端主机通过redhat用户和服务端主机基于公钥验证方式进行远程连接
一、配置ntp时间服务器,确保客户端主机能和服务主机同步时间
1.服务器主机从阿里云同步时间,并重启服务![](https://i-blog.csdnimg.cn/blog_migrate/c0a10b7f908c68a40ab1090606ababae.png)
2.查看服务器主机是否同步
3.配置允许访问的IP,并重启服务
4.客户端修改主配置文件中时间服务器地址,并重启服务
5.查看客户端是否同步
二、配置ssh免密登陆,能够通过客户端主机通过redhat用户和服务端主机基于公钥验证方式进行远程连接
1.创建新用户redhat
2.创建新的密钥对,并且发送到指定目录
3.测试
[redhat@node1 root]$ ssh root@192.168.142.4
Activate the web console with: systemctl enable --now cockpit.socket
Register this system with Red Hat Insights: insights-client --register
Create an account or view all your systems at https://red.ht/insights-dashboard
Last login: Sat Mar 18 19:58:18 2023 from 192.168.142.5
[root@server ~]#