ĭebug1: Server host key: ecdsa-sha2-nistp256 SHA256:zmCg5vHhBAMd5P4ei82+KsVg072KXbC63C44P0w3zbUĭebug1: Host 'c199' is known and matches the ECDSA host key.ĭebug1: Found key in /c/Users/xxxxx/.ssh/known_hosts:35ĭebug2: key: /c/Users/xxxxx/.ssh/id_rsa (0圆0006bec0), agentĭebug2: key: /c/Users/xxxxx/.ssh/id_dsa (0x0)ĭebug2: key: /c/Users/xxxxx/.ssh/id_ecdsa (0x0)ĭebug2: key: /c/Users/xxxxx/.ssh/id_ed25519 (0x0)ĭebug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,passwordĭebug1: Next authentication method: publickeyĭebug1: Offering RSA public key: /c/Users/xxxxx/.ssh/id_rsaĭebug2: we sent a publickey packet, wait for replyĭebug1: Trying private key: /c/Users/xxxxx/.ssh/id_dsaĭebug1: Trying private key: /c/Users/xxxxx/.ssh/id_ecdsaĭebug1: Trying private key: /c/Users/xxxxx/. Same ssh key, ssh promptless login, but ssh prompt password input. ssh user's folder permissions to 700 and authorized_keys file to 644. In centos's /home/ufo/.ssh/authorized_keys , ZEQOMi6S9zM/yRiD0XZrbmzYfNkoXA03WTmMR/DynVvX2nV /c/Users/xxxx/.ssh/id_rsa Ugy8DPtMATN66nTTDUYO0sSvw2BrQfDY4iIENdLpkkHO8KQVGpQE+8tDkaZfD6EQLVtl0uvDE3D77tfcnBLODXgZPQsUSlssMi+pxDbSVjjKgrP I try to login remote centos on msys2(on Windows) by ssh, I found there are many same lines like ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCs7RTfvn83Rxdmvgfh+F4kUlM5FzIUb9rRHaqq11xKIW1gztn/+G4tr+OWl4o6GTW2Z361hIi Now try logging into the machine, with: "ssh check to make sure that only the key(s) you wanted were added.īut login by ssh still prompt password input. usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed - if you are prompted now it is to install the new password: Ssh-copy-id ask me enter password, /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed For multiple users and keys, copy each new key onto a new line. Copy the public key contents into the authorizedkeys file. Next, open the authorizedkeys file using a text editor. To copy your SSH key to the server, open Windows Terminal, copy and. To get your public SSH to the server and enable password-less login, you may have to use PowerShell to do the same in Windows 11. However, Windows doesn’t have the ssh-copy-id tool installed. It is worth noting that giving your private key a password takes away the convenience argument. Change the permissions: chmod 600 /.ssh/authorizedkeys. On Unix-like systems, ssh-copy-id is a tool for copying SSH keys to the server. Ideally, the private key is also password-protected.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |