![]() Scp -i ~/.ssh/id_rsa.pub /home/USER/FILENAMEĪgain, you will be asked for your ssh key password and the file will be pulled from the server and copied to the local machine. The same holds true if you need to pull a file from the remote server. Once authenticated, the file will be transferred. You should be prompted for the ssh key password (not the user password). Scp -i ~/.ssh/id_rsa.pub FILENAME FILENAME is the name of the file, USER is the username on the remote machine, and SERVER is the address of the remote server. The command to send a file to your remote server, using your ssh key, is (assuming you accepted the default name for your ssh key upon creation): Now that our keys are in all the right places, let’s see how we can make use of them, through scp. SEE: Securing Linux policy (Tech Pro Research) Using scp with your key Once you successfully authenticate, the public key will be copied to the server. You will be prompted for the remote user password. ![]() Ssh-copy-id USER is the username on the remote server and SERVER is the address of the remote server. The next step is to copy the key to the remote server. Once the key’s randomart prints, your key is ready to go. You will be asked to name the file (use the default) and give the keypair a passphrase ( Figure A). To do this, open up a terminal window and issue the command: The first thing that must be done is the creation of an ssh key pair. 24/7 Customer Support, Data Redundancy, Encryption, and more ssh keys
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |