1. ssh-keygen -t rsa
2. cd /home/oracle/.ssh/
3.scp id_rsa.pub oracle@172.17.8.23:/home/oracle/89.pub
8.23
1.cd /home/oracle/.ssh
2.cat ../89.pub>>authorized_keys
可使用ssh-copy-id命令直接复制到远端
NAME
ssh-copy-id - install your identity.pub in a remote machine’s autho-
rized_keys
SYNOPSIS
ssh-copy-id [-i [identity_file]] [user@]machine
本文介绍如何通过生成SSH密钥并使用scp或ssh-copy-id命令实现远程服务器的免密码登录,包括密钥生成、公钥传输等步骤。
9万+

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



