一、建立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:44:f1:b9:77:4a:c1:52:92:bf:29:b6:32 root@chinavvv
[root@chinavvv ~]#
[root@chinavvv ~]# ls -lt /root/.ssh
总计 12
-rw------- 1 root root 1675
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:44:f1:b9:77:4a:c1:52:92:bf:29:b6:32 root@chinavvv
[root@chinavvv ~]#
[root@chinavvv ~]# ls -lt /root/.ssh
总计 12
-rw------- 1 root root 1675