![]() ![]() The server should not prompt you to enter the server password. You should see a prompt to enter the passphrase that you set for your SSH keys. ![]() To do so, try logging in to the remote server using the PEM file for authentication. sudo chmod 400 scp_server.pemīefore starting to use SCP with the PEM file, it would be great to check if everything is okay. You should see an output similar to the image below.įinally, change the user-access permissions of the PEM file on your local machine using the command below. Type the password and hit enter to continue. You will see a prompt to enter the password of the remote password. Use the ssh-copy-id utility to copy the public key as shown below. In our case, the server uses the Username: server-one and IP-address: 192.168.1.46. Now you need to copy the public key (scp_server.pub) to the server that you want to access. Now, when you run the ls command, you should see a new file with the name scp_server.pem. Now, you need to generate a PEM file from the private key. When you run the ls command, you will see two files that were generated by the ssh-keygen utility. The ssh-keygen utility will generate the SSH keys as shown in the image below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |