![]() Click the Browse button and select your private key. Finally, it’s time to configure PuTTY to work with the new key pair. If you want to add another public key, you need to paste it on a new line. ![]() Press Ctrl+x and confirm that you want to save the changes. A simple right-click pastes your public key into the file. This opens the authorized_keys file in the GNU nano text editor. Now, go back to the command-line interpreter and enter the following command: Make sure you select every single character. You need to go back to the PuTTYgen window and copy your public key from the field at the top. The next step is to paste your public key inside the authorized_keys file. If you skip this step, your SSH client will be unable to access your public key and log you in. Set the file’s ownership and permissions. If you’re not sure whether you’re in the right place, you can use $cd ~ to navigate to it. NOTE: Make sure you run these commands from your account’s home directory. If this is the first key you’re saving on your account, you’ll need to create the file yourself. Public SSH keys used for authentication are stored in ~/.ssh/authorized_keys. Log in to your SPanel server using your username and password. Here’s what you need to do if you use PuTTY to connect to an SPanel VPS. With the keys generated, you need to configure your server and your client to work with them. Using SSH Keys For Authentication on an SPanel Server If you’re going to configure your server to work with the key pair right now, it’s best to leave the PuTTYgen window open. You can also save the public key, though it’s not really necessary because you can easily access it by loading the private one in PuTTYgen. ![]() This passphrase will be needed when making the SSH connection later. ![]() Type in the password you choose into the “Key Passphrase” field and again in the “Confirm passphrase” field. Keep moving your mouse until the key information appears. You will be asked to move your mouse around randomly – remember to do this within the small blank area under the “Key” label. Under the “Parameters” label, select “RSA” as the type of key, then click the “Generate” button. If it was not, you would need to download and install it separately. In your Windows search bar, look for PuTTYgen to see if you installed it with PuTTY. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |