一、建立ssh单向等效性
SSH单向等效性
备注:应用服务器(192.168.0.1)------------------->>备份机(192.168.0.3)
SSH单向等效性
备注:数据库服务器(192.168.0.2)-------------------->>备份机(192.168.0.3)
登录192.168.0.1
[root@chinavvv ~]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/id_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
2f:16:86:c3:
SSH单向等效性
备注:应用服务器(192.168.0.1)------------------->>备份机(192.168.0.3)
SSH单向等效性
备注:数据库服务器(192.168.0.2)-------------------->>备份机(192.168.0.3)
登录192.168.0.1
[root@chinavvv ~]# ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): /root/.ssh/id_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
2f:16:86:c3:

本文介绍了如何在Linux系统中建立SSH单向等效性,实现应用服务器和数据库服务器到备份机的自动备份。详细步骤包括生成SSH密钥对、配置授权文件、创建应用程序和数据库的备份脚本,并通过cronjob设定定期执行。此外,还提供了在备份机上清理过期备份文件的方法,以保持最近7天的最新备份。
最低0.47元/天 解锁文章
656

被折叠的 条评论
为什么被折叠?



