linux 配置ssh互信
  TEZNKK3IfmPf 2023年11月14日 129 0
root@spectre:~# ssh-keygen 
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:bIcQJwbB5RqKcXGJWha9qfJpGm3YyLxkBmLlb9Hdue0 root@k8s2-master
The key's randomart image is: +---[RSA 2048]----+ | o=+== . | | +o+o + | |.+...oo | |.+o.oo.o... . | |+..o.. .S..o | |B=. . .. . o | |+O+. o . . | |+o= . . | |.+ E | +----[SHA256]-----+ '
root@spectre:~# sshpass -p 12345mtr. ssh-copy-id -f root@192.168.211.51
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh 'root@192.168.211.51'"
and check to make sure that only the key(s) you wanted were added.
【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月14日 0

暂无评论

推荐阅读
TEZNKK3IfmPf