ntp服务作为所有基于时间的TOTP的基础,尤其是bitwarden采用客户端的时间计算验证码,需要解决客户端的时间同步问题。
本篇是在centos8上部署ntp服务,用于win10的时间同步
- 部署过程
1)设置时间同步
yum install chrony -y systemctl start chronyd systemctl enable chronyd TZ='Asia/Shanghai'; export TZ chronyc sources –v chronyc -a makestep
2)设置ntp服务范围
修改nano /etc/chrony.conf
3)设置防火墙
firewall-cmd --add-service=ntp --permanent systemctl restart firewalld
- win10设置
参考资料:
- https://blog.csdn.net/yleihj/article/details/125477706