日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux 免密码登录

發(fā)布時(shí)間:2024/4/14 linux 20 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux 免密码登录 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

linux 免密碼登錄 配置

test 為本地linux

?192.168.1.70 為遠(yuǎn)程linux

[root@test:/home/root]$ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/root/.ssh/id_rsa.
Your public key has been saved in /home/root/.ssh/id_rsa.pub.
The key fingerprint is:
44:xx:30:xx:xx:76:4b:3a:82:fc:xx:0b:bf:xx:xx:fb root@test
The key's randomart image is:
+--[ RSA 2048]----+
| +.. |
| + = |
| o + = |
| . . o * . |
| o . = S |
| . o.+ . |
| . +o |
| . +. |
| oE. |
+-----------------+
[root@test:/home/root]$ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.1.70
The authenticity of host '192.168.1.70 (192.168.1.70)' can't be established.
RSA key fingerprint is 36:1f:9f:42:fe:7c:bd:34:5b:b0:06:3a:a2:52:b8:ba.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.70' (RSA) to the list of known hosts.
root@192.168.1.70's password:
Permission denied, please try again.
root@192.168.1.70's password:
Now try logging into the machine, with "ssh '192.168.1.70'", and check in:

.ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[root@test:/home/root]$

總結(jié)

以上是生活随笔為你收集整理的linux 免密码登录的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。