Home > Database > Mysql Tutorial > 配置Oracle用户的ssh authorized keys

配置Oracle用户的ssh authorized keys

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:27:48
Original
1497 people have browsed it

配置Oracle用户的ssh authorized keys

如何配置HOST1,HOST2之间基于Oracle用户ssh无密码登录

1. login HOST1 as  oracle ,在~/.ssh/下生存公id_rsa.pub、私钥id_rsa

 ssh-keygen -t rsa

2. login HOST2  as  oracle ,在~/.ssh/下生存公id_rsa.pub、私钥id_rsa

3. on HOST1,copy 认证key到host2且生成authorized_keys 文件

scp id_rsa.pub HOST2:/~/.ssh/authorized_keys

4. on HOST2, 把本机的authorized key 合并到刚才拷贝过的keys中,并回copy一份给HOST1

cat id_rsa.pub >> ~/.ssh/authorized_keys

scp authorized_keys HOST1:~/.ssh/

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template