S2326TP-IE добавление пользователя и включение удаленного подключение по протоколам Telnet и SSH

И сохраняем конфиг:

[Quidway]q
<Quidway>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Jan  2 2008 22:46:52+02:00 Quidway %%01CFM/4/SAVE(l)[0]:The user chose Y when deciding whether to save the configuration to the device.
Now saving the current configuration to the slot 0 .
Info: Save the configuration successfully.
<Quidway>

На данном этапе уже можно подключиться к свитчу через телнет протокол и авторизоваться, а также вводить остальные настройки.

3. Настройка подключения через протокол SSH
Лучше всего использовать SSH протокол, так как он лучше зачищен чем телнет, но и настраивается немного дольше.
Начнём настройку SSH протокола:

<Quidway>sys
Enter system view, return user view with Ctrl+Z.
[Quidway]rsa local-key-pair create 
The key name will be: Quidway_Host
The range of public key size is (512 ~ 2048). 
NOTES: If the key modulus is greater than 512, 
       it will take a few minutes.
Input the bits in the modulus[default = 2048]:2048
Generating keys...
...................................+++
......+++
.....++++++++
......++++++++
 
[Quidway]ssh user hadmin
Info: Succeeded in adding a new SSH user.
[Quidway]ssh user hadmin authentication-type password
[Quidway]ssh user hadmin service-type all
[Quidway]aaa
[Quidway-aaa]local-user hadmin service-type ssh
[Quidway-aaa]q
[Quidway]ssh user hadmin authentication-type rsa   
[Quidway]stelnet server enable
[Quidway]user-interface vty 0 4
[Quidway-ui-vty0-4]protocol inbound all
[Quidway-ui-vty0-4]q
[Quidway]q
<Quidway>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Jan  2 2008 23:06:15+02:00 Quidway %%01CFM/4/SAVE(l)[1]:The user chose Y when deciding whether to save the configuration to the device.
Now saving the current configuration to the slot 0 .
Info: Save the configuration successfully.
<Quidway>

Описание используемых команд:
sys - вход в режим конфигурирования
rsa local-key-pair create - создание локального ключа для SSH входа
ssh user hadmin - добавление пользователя в службу SSH
ssh user hadmin authentication-type password - указываем что пользователь hadmin будет проводить авторизацию по локальной политике
ssh user hadmin service-type all - разрешаем пользователю hadmin использовать все сервисы и команды
aaa - вход в меню управления аутентификацией на свитче
local-user hadmin service-type ssh - указываем что пользователь hadmin имеет права доступа в группу SSH
ssh user hadmin authentication-type rsa - указываем что пользователь будет использовать ключ с названием rsa
stelnet server enable - включаем службу SSH
q - выход на один уровень ниже
save - сохранение конфига

Теперь можно подключаться к свитчу по протоколу SSH.



Яндекс.Метрика
Счётчик ТЦ#65533;Ц LiveRSS: Каталог русскоязычных RSS-каналов