我一直在使用Puttygen为Azure Linux VM生成SSH密钥对。但是,当我在putty中加载私钥并连接到我的服务器时,它抛出错误
Unable to use key file "C:\publickey\id_rsa.ppk" (OpenSSH SSH-2 privateEnter file in which to save the key (C:\Users\xxx/.ssh/id_rsa): C:\publickey\id_
我正在尝试为我的亚马逊EC2实例设置一个sftp用户。关于这个的好教程。Using the AWS Management Console, generate a new key pair for the third-party user.On the server, create the .ssh directory for the new user:
sudo mkdir /home/newusername
我运行了以下SSH命令来创建我的rsa密钥,但我不知道文件是在哪里创建的$ ssh-keygen -t rsa -C "myemail@gmail.comEnter file in which to save the key (/f/.ssh/id_rsa):Entersame passphrase again:
在调试时,我发现在bash的情况下,ssh正在检查id_rsa键,但是在cmd的情况下,只检查github_rsa。甚至不想检查id_rsa。下面是原木。debug1: Server accepts key: pkalg ssh-rsa blen 277debug1type 1
debug1: identity file /c/Documents and Set