ntp时间服务器与ssh免密配置

1、配置ntp时间服务器,确保客户端主机能和服务主机同步时间

实验步骤:
 

(1)服务器与客户端下载chrony程序

命令:yum install chrony -y

(2)修改/etc/chrony.conf的参数

vim /etc/chrony.conf

chrony server需要修改的参数

 

 客户端node需要修改的参数

(3)重启chronyd程序

命令:systemctl restart chronyd

(4)验证配置

2、配置ssh免密登陆,能够实现客户端主机通过服务器端的redhat账户进行基于公钥验证方式的远程连接

实验过程:
(1)创建redhat用户

(2)进入node与redhat创建秘钥

 

 

(3)将node的秘钥发送服务端redhat用户  

 (4)验证免密登陆

猜你喜欢

转载自blog.csdn.net/weixin_45875361/article/details/130952093