Created
September 19, 2018 16:14
-
-
Save thecliguy/aa4bd6bdb1a7b362ab210c61db0cda42 to your computer and use it in GitHub Desktop.
SSH Config Steps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On the server: | |
- Create a .ssh directory in the user's profile. | |
- Create a file named "authorized_keys" in the .ssh directory. | |
- Grant permissions on the directory - only the owner can read, write, or open the directory. | |
- Grant permissions on the file - owner can read and write. | |
On the client: | |
- Generate a key pair using PuTTY Key Generator (puttygen.exe). | |
- Right-click in the text field labelled Public key for pasting into | |
OpenSSH authorized_keys file and choose 'Select All'. | |
On the server: | |
- Edit the authorized_keys file with your favourite text editor and paste the public key for your key pair (generated by puttygen) into the file. | |
- Disable SSH password authentication. | |
- Restart the server's SSH daemon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment