Differences
This shows you the differences between two versions of the page.
| en:dpi:dpi_components:dpiui:user_guide:admin_section:equipment_management:ssh_keys [2024/09/26 15:29] – created - external edit 127.0.0.1 | en:dpi:dpi_components:dpiui:user_guide:admin_section:equipment_management:ssh_keys [2024/10/22 14:58] (current) – elena.krasnobryzh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== SSH keys ====== | ||
| - | |||
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | The connection with equipment is carried out via the SSH protocol. | + | ======SSH key for connecting to equipment====== |
| + | Connection to the equipment through the graphical interface | ||
| + | In this section, we will cover the key-based authorization process. | ||
| + | <note tip> | ||
| - | Add a sudo user on this hardware. See [[en: | + | =====sshd configuration===== |
| + | The configuration file is located at ''/ | ||
| + | We recommend checking the '' | ||
| - | === Configuration | + | <note important> |
| + | After any changes to the ''/ | ||
| + | <code bash> | ||
| + | </ | ||
| - | Check the **/ | + | =====Step 1. Creating a key===== |
| + | - Navigate to the Administrator → SSH Keys section | ||
| + | - Click on the + at the top of the screen to add a new key\\ {{: | ||
| + | - Enter the key name | ||
| + | - Upload the public | ||
| + | - If you already have ready-made keys, you can upload them by clicking | ||
| + | - If the necessary ssh files are missing, they can be generated by clicking | ||
| + | - If the private key is encrypted, provide the passphrase set during key creation\\ If no passphrase was set, leave the field blank | ||
| + | - Click Save | ||
| - | If the **PubkeyAuthentication** property is missing, commented out, or set to **PubkeyAuthentication no**, then replace | + | =====Step 2. Adding |
| + | - Navigate to Administrator → Equipment | ||
| + | - Open the equipment settings. The ssh key can be added to new or existing equipment. | ||
| + | - Create new equipment: click on the + at the top of the screen\\ {{: | ||
| + | - Edit existing equipment: click the edit icon to the left of the equipment\\ {{: | ||
| + | - When creating new equipment, fill in all fields | ||
| + | - Select the Key-based authorization type\\ {{: | ||
| + | - In the SSH Key field, select the previously created key. Or by clicking on the + create a new SSH key, the process is identical to that described in [[en: | ||
| + | - Click Save | ||
| - | <note important> | + | =====Step 3. Adding the ssh key to the server===== |
| + | - Under the root user, navigate to the '' | ||
| + | - Go to the hidden directory '' | ||
| + | - Open the '' | ||
| + | - Add the **public** key content to the file | ||
| - | === Authorized keys === | + | After completing these steps, check the connection by clicking on the Hardware State button in the Administrator → Equipment section.\\ |
| + | If all properties are in the “Ok” state, the connection was successful. | ||
| - | Add a public key to a specific user's file on the remote server: | + | {{:en: |
| - | < | + | |
| - | For root user: | ||
| - | < | ||