Просмотр Исходного

*Процедура генерации шифрованных ключей:*

1. На Carbon Billing в консоли:
{code}
chroot /app/asr_billing/
ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
41:ca:18:64:75:33:39:6b:15:7a:30:7c:a6:53:3d:49 root@localhost.localdomain
The key's randomart image is:
+--[ RSA 2048]----+
| o=.+=E. |
| .+=B++ |
| .Oe+.. |
| + = . |
| + .S |
| |
| |
| |
| |
+-----------------+
{code}


2. С помощью утилиты {color:#000000}{*}ssh-copy-id{*}{color} {color:#000000}загружаем открытый ключ на NAS{color}:
{code}ssh-copy-id -i /root/.ssh/id_rsa.pub LOGIN@IP_ВАШЕГО_NAS{code}

Проверяем доступ к NAS без пароля:
{code}[root@localhost (asr_billing) /]# ssh LOGIN@IP_ВАШЕГО_NAS
FreeBSD 11.1-RELEASE-p9 #0: Sat May  2 22:21:41 MSK 2018

Welcome to FreeBSD!

TEST@test-nas:~ % {code}

Примечание: сгенерированный ключ можно использовать на нескольких удаленных NAS-серверах, ключ является открытым и служит для одностороннего доступа с биллинга на NAS-сервер.