![]() The public key will be copied to the ~/.ssh/authorized_keys file on the server. You will be prompted for your password to log in. Replace user with your username on the server and replace with your domain name or the IP address of the server. ![]() Replace mykey.pub with the name you chose in the previous step. ssh directory.Ĭopy the public key to your server using the ssh-copy-id command. When the command completes, a public key named mykey.pub and a private key named mykey will be created in the. Adding a passphrase makes the key more secure but keys with passphrases cannot be used for automation. The command will prompt for a passphrase during creation of the key. ssh directory, type this command, replacing mykey with a file name of your choice. ssh directory does not exist, you can create it with this command: ~$ mkdir ~/.ssh
0 Comments
Leave a Reply. |