![]() ![]() ![]() NOTE: If you find you need to do this across multiple servers refer to my Q&A titled: How can I propagate my SSH pub key to a list of servers without having to type my password in over and over?. Now try logging into the machine, with: "ssh check to make sure that only the key(s) you wanted were added. usr/local/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed - if you are prompted now it is to install the new password: usr/local/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed Usage $ ssh-copy-id -i /path/to/id_rsa.pub $ ssh-copy-id -i ~/.ssh/id_rsa.pub INFO: Source of key(s) to be installed: "/Users/user1/.ssh/id_rsa.pub" If you are using windows 10 ssh on the command line all you need to do is right-click the mouse. It is also usually a good idea to :set paste when pasting anything into vim. In 'Options' > 'Edit Options', click the checkbox next to 'Use Ctrl+Shift+C/V as Copy/Paste'. 2 Putty should have the standard clipboard facilities (copy, paste, cut.) somewhere in the window menu - have you tried that Remember to have vi in insert mode when you do that as jordanm suggested. Once you establish an SSH session with the remote machine, locate the file you wish to copy. n: dry run - no keys are actually copied Right click in command prompt window's title area. The scp command is a secure version of the Unix copy command cp. ] force mode - copy keys without trying to check if they are already installed To bootstrap an account on aa remote server I generally use ssh-copy-id to do this. NOTE: you never want to copy a private key to remote servers, you want to add your key-pair's public key to the remote server so that your private key can be authenticated. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |