This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
сервис_ssh [2026/09/11 07:52] val [Windows] |
сервис_ssh [2026/09/17 14:53] (current) val [Настройка ssh сервера] |
||
|---|---|---|---|
| Line 50: | Line 50: | ||
| ===== Настройка ssh сервера ===== | ===== Настройка ssh сервера ===== | ||
| <code> | <code> | ||
| + | gate# less /etc/ssh/sshd_config | ||
| + | </code><code> | ||
| + | ... | ||
| + | #PermitRootLogin prohibit-password | ||
| + | ... | ||
| + | Include /etc/ssh/sshd_config.d/*.conf | ||
| + | ... | ||
| + | </code><code> | ||
| gate# cat /etc/ssh/sshd_config.d/my.conf | gate# cat /etc/ssh/sshd_config.d/my.conf | ||
| </code><code> | </code><code> | ||
| Line 100: | Line 108: | ||
| ## User root | ## User root | ||
| - | #Host server | + | #Host gate |
| - | # HostName 192.168.X.10 | + | # HostName 192.168.X.1 |
| # User root | # User root | ||
| - | # IdentityFile ~/.ssh/id_vscode | + | # IdentityFile ~/.ssh/id_rsa |
| #Host switch* 192.168.X.5* | #Host switch* 192.168.X.5* | ||