![]() On your local Windows machine, go to the directory with your SSH key pair and copy the contents of the public key file.įor security reasons, you should remove the public key from the authorized_keys file on the remote server too. You need to save the public key on the remote server. With PuTTY, the key should be in a location of your choice.With PowerShell and the Linux terminal in ~/.ssh.On your local Windows machine, the SSH key should be saved in: ![]() To create a key pair, follow the steps explained in the tutorial " Generate SSH key using PuTTYgen". To open it, simply search and select "PuTTYgen" in the Windows search bar. The installation of PuTTY automatically comes with the "PuTTY Key Generator". The way you can generate your own SSH key pair depends on the SSH method you chose:įollow the step "Generating an SSH key" explained in " Setting up an SSH key" to create an SSH key pair. This file contains the public key of all key pairs that are used for authentication on the server.įor more information about SSH keys, check out the introduction of this tutorial: Setting up an SSH key You have to save this key in the authorized_keys file on your server. You should never share this file with anyone else. In addition, SSH keys are more secure than passwords. With an SSH key, you do not need a password to connect to your server. Now that you know how to connect to your server, you can generate an SSH key pair and save the public key in the authorized_keys file on your server. You should now be logged in on your remote server. List all available Linux distributions, pick a Linux distribution (e.g.The user will be an administrator with sudo permissions. This will be the default user for the Linux distribution you've just installed. The first time you open the terminal, you will be asked to setup a user. ![]() You can now open the Linux terminal as explained in substep 3 below. Make sure the description of the terminal environment mentions "Windows Subsystem for Linux" (WSL). In the Microsoft Store, search for your favorite Linux distribution, such as "Ubuntu", and select Get. You can install a Linux distribution via the Microsoft Store or via PowerShell. Once these are enabled, click OK and reboot. In the window that pops up, scroll down and enable: In your Windows search bar, enter and select "Turn Windows features on or off". If there is a warning about host authenticity, you can enter yes. If you have the correct PowerShell version and OpenSSH Client is installed, open PowerShell and use the SSH command to connect to your server: Search for "OpenSSH Client" and click Install.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |