龙珠直播平台,黄华华,廖京生吻戏
生成秘钥
$ ssh-keygen.exe generating public/private rsa key pair. enter file in which to save the key (/c/users/17982/.ssh/id_rsa): enter passphrase (empty for no passphrase): enter same passphrase again: your identification has been saved in /c/users/17982/.ssh/id_rsa. your public key has been saved in /c/users/17982/.ssh/id_rsa.pub. the key fingerprint is: sha256:snym89sjwzx/wsdoa6ajyhm5ysayeeagw0l4 1782@desktop-4fr0rkp the key's randomart image is: +---[rsa 3072]----+ |==o . oo | |.o.. o.+. | |+.* o.= | |o=.= +.b | |+ o.o b.s | |o+e= o+= + | |..o.*= + o | | . o. . | | | +----[sha256]-----+
将公钥上传到服务器
$ ssh-copy-id zxc@zhangxuechao.top /usr/bin/ssh-copy-id: info: source of key(s) to be installed: "/c/users/17982/.ssh/id_rsa.pub" /usr/bin/ssh-copy-id: info: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: info: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys zxc@zhangxuechao.top's password: number of key(s) added: 1 now try logging into the machine, with: "ssh 'zxc@zhangxuechao.top'" and check to make sure that only the key(s) you wanted were added.
注意:上传给哪个用户,哪个用户才可以免密
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
linux下文本编辑器vim的使用方法(复制、粘贴、替换、行号、撤销、多文件操作)
网友评论