-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,10 @@ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys | |
chmod 600 ~/.ssh/authorized_keys | ||
|
||
##yum -y install openssh-clients | ||
ssh-copy-id -i /root/.ssh/id_dsa.pub [email protected] | ||
ssh-copy-id -i /root/.ssh/id_dsa.pub [email protected] | ||
|
||
#注意文件是id_dsa.pub还是id_rsa.pub,否则会出现ssh-copy-id: ERROR: No identities found | ||
ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected] | ||
ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected] | ||
|
||
|