1.获取软件包 mount /dev/sr0 /mnt
2.修改yum 源 vim /etc/yum.repos.d/bas.repo
[BaseOS]
name=RHEL8.5-BaseOS
baseurl=file:///mnt/BaseOS
gpgcheck=0
[AppStream]
name=AppStream
baseurl=file:///mnt/AppStream
gpgcheck=0
3.下载软件
yum install chrony
4.更改chrony文件设置
pool slb.time.edu.cn ibusrt 自定义同步时间服务器
systemctl restart chronyd
重启chronyd服务器
5. date查看时间是否同步成功
ntp服务器s/c端
server端
sever 192.168.10.134
(1)更改配置文件
vim /etc/chrony.conf
#pool XXXXXXXXXXXX
local stratum 10
allow 192.168.10.0/24
(2)重启服务
systemctl restart chronyd
(3)关闭防火墙
systemctl stop firewalld
client 192.168.10.129
(1)date 更改时间
(2)vim /etc/chrony.conf
pool 192.168.10.134
(3)systemctl restart chronyd
(4) [root@localhost ~]# chronyc sources
ssh 远程连接·
server端
1.修改ssh 服务配置文件
/etc/ssh/sshd_config
1.port 2222
2.PermitRootLogin yes 允许root用户远程连接
3.UseDNS no 远程连接关闭域名解析
4.AllowUsers redhat 设置可以远程连接的白名单
client端
A 192.168.10.134
(1)生成密钥对
#ssh-keygen -t RSA -b 4096
一直回车
#ll /root/.ssh
(2)发送公钥到要连接的服务器主机
#ssh-copy-id -i 192.168.10.129
(3)测试
ssh 192.168.10.129
B 192.168.10.129