这里我们需要利用 PuTTyGEN 这个工具: 点击PuTTyGen 界面中的 Load 按钮,选择 id_rsa 文件,输入 passphrase(如果有的话),然后再点击 Save PrivateKey 按钮,这样 PuTTy 接受的私钥就做好了。 打开PuTTy,在 Session 中输入服务器的 IP 地址,在 Connection->SSH->Auth 下点击 Browse 按钮,选择刚才生成好的私钥。
[root@CTL ~]# 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): //最后会提示你密钥创建成功,私钥存放在id_rsa,公钥放在id_rsa.pub Your identifica...
Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory '/root/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has bee...
Enter file in which to save the key (/home/admin/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/admin/.ssh/id_rsa. Your public key has been saved in /home/admin/.ssh/id_rsa.pub. The key fingerpri...
Enterfileinwhichto save the key (/root/.ssh/id_rsa): /root/.ssh/id_90//定义保存的密钥文件名Enter passphrase (emptyforno passphrase)://要求对生成的密钥对加密,也可以不加密 输入两次回车就OKEnter same passphrase again: Your identification has been savedin/root/.ssh/id_90.//说明已经生成密...
Enter passphrase (emptyforno passphrase): Enter same passphrase again: Your identification has been savedinC:\Users\Administrator/.ssh/id_rsa Your public key has been savedinC:\Users\Administrator/.ssh/id_rsa.pub The key fingerprint is: ...
[root@1inux ~]#ssh-keygen-t rsa//生成密钥对Generating public/private rsa key pair. Enter fileinwhichto save the key (/root/.ssh/id_rsa): /root/.ssh/id_90//定义保存的密钥文件名Enter passphrase (emptyforno passphrase)://要求对生成的密钥对加密,也可以不加密 输入两次回车就OK Enter same...
> ssh -i id-web1 user@web1 Enter passphrase for key 'id-web1': Last login: Sat Jul 11 11:09:53 2022 from 192.168.10.122 Have a lot of fun...Copy 系统应会要求您提供私用密钥通行口令,而不是您的用户帐户的口令。 要使公共密钥身份验证起作用,应在远程计算机上强制实施这种身份验证方法,并...
then those are "OK" to run on different agents across all sessions. Same approach could be applied to makessh-add -tto work. When it start to use the key, check if key is "expired" and if that is the case, then remove it and ask for passphrase to add it again. Would emulate mo...
Normally this program generates the key and asks for a file in which to store the private key. The public key is stored in a file with the same name but “.pub” appended. The program also asks for a passphrase. The passphrase may be empty to indicate no passphrase (host keys must...