Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ssh-keygen secret-free login

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

ssh-keygen password free login

ssh secret free login

Experimental environment: centos 6.5

[oracle@xuegod72 ~]$ ssh-keygen generate key command

Generating public/private rsa key pair. Just keep going.

Enter file in which to save the key (/home/oracle/.ssh/id_rsa):

/home/oracle/.ssh/id_rsa already exists.

Overwrite (y/n)?

[oracle@xuegod72 ~]$ ssh-copy-id -i .ssh/id_rsa.pub root@172.16.0.175

Note: here use ssh-copy-id copy key, try not to use cp, scp command copy will have problems

The-i parameter specifies the file to copy

root@172.16.0.175 is the default home directory location for root

[oracle@xuegod72 ~]$ ssh root@172.16.0.175

Last login: Wed Nov 2 14:28:37 2016 from 172.16.0.86

Note: The secret-free login here refers to the public key location where oracle users can log in to 172.16.0.175 directory/root/.ssh/authorized_keys.

From the results, the secret login was successful.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 272

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report