How do I add an authorized key to a SSH key?
This guide shows how to connect to your host machine and insert your public key into authorized_keys
file. Important The authorized_keys file specifies the SSH keys that can be used for logging into the user account. Please read following guide carefully, since it is a highly important configuration file. Step 1: Connecting to host machine¶A. If you’re using Windows¶In order to make an SSH connection to your host machine, you need to use program like PuTTY.
B. If you’re using Linux or MacOS¶If you are a MacOS or Linux user, you can make an SSH connection by using Terminal, a console program included with the operating system.
Step 2: Editing authorized_keys file¶
Step 3: Setting correct directory permissions¶The SSH protocol requires following file/directory permissions to establish secure connections.
Where is SSH authorized keys file?The authorized_keys file in SSH specifies the SSH keys that can be used for logging into the user account for which the file is configured. This file is usually found in the user's home directory under
What are authorized keys?An authorized key in SSH is a public key used for granting login access to users. The authentication mechanism is called public key authentication. Authorized keys are configured separately for each user - usually in the . ssh/authorized_keys file in the user's home directory.
|