交換機(jī)路由器之前telent和SSH配置教程

太久沒有配置網(wǎng)絡(luò)交換機(jī),基本的配置都忘記了七七八八了,作為一個(gè)運(yùn)維工程師。要時(shí)刻保持著不斷學(xué)習(xí)的態(tài)度,用知識來武裝自己。好了,廢話不多說。直接進(jìn)入今天的主題

交換機(jī)路由器配置ssh

實(shí)驗(yàn)拓?fù)?/h4>
拓?fù)?/div>

創(chuàng)建VLAN100

[SW] vlan 100
[SW-vlan100] quit

配置接口GE0/0/1:

[SW] interface GigabitEthernet 0/0/1
[SW-GigabitEthernet0/0/1] port link-type access
[SW-GigabitEthernet0/0/1] port default vlan 100

為交換機(jī)的Vlanif100配置IP地址:

[SW] interface Vlanif 100
[SW-Vlanif100] ip address 192.168.1.100 24

配置用于SSH登錄的用戶名(client001)、密碼(Huawei123):

[SW] aaa
[SW-aaa] local-user client001 password cipher Huawei123
[SW-aaa] local-user client001 privilege level 3
[SW-aaa] local-user client001 service-type ssh
[SW-aaa] quit

在交換機(jī)上生成本地密鑰對:

[SW] rsa local-key-pair create
The key name will be: SW_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 = 512]:
Generating keys...
...++++++++++++
.++++++++++++
..................++++++++
......++++++++

激活Stelnet服務(wù):

[SW] stelnet server enable
[SW] ssh authentication-type default password
[SW] ssh user client001 authentication-type password
[SW] ssh user client001 service-type all

配置VTY(虛擬終端)界面,身份認(rèn)證方式為AAA認(rèn)證,允許用戶以SSH的方式接入:

[SW] user-interface vty 0 4
[SW-ui-vty0-4] authentication-mode aaa
[SW-ui-vty0-4] protocol inbound ssh

交換機(jī)路由器配置telent

創(chuàng)建VLAN100:

[SW] vlan 100
[SW-vlan100] quit

配置接口GE0/0/1:

[SW] interface GigabitEthernet 0/0/1
[SW-GigabitEthernet0/0/1] port link-type access
[SW-GigabitEthernet0/0/1] port default vlan 100
[SW] interface Vlanif 100
[SW-Vlanif100] ip address 192.168.1.100 24

配置用于Telnet登錄的用戶名(telnetuser)、密碼(Huawei123):

[SW] aaa
[SW-aaa] local-user telnetuser password cipher Huawei123
[SW-aaa] local-user telnetuser privilege level 3 #用戶級別為3級
[SW-aaa] local-user telnetuser service-type telnet #用戶服務(wù)類型為telent

配置VTY(Virtual Teletype Terminal,虛擬終端)界面,身份認(rèn)證方式為AAA認(rèn)證:

[SW] telnet server enable
[SW] user-interface vty 0 4
[SW-ui-vty0-4] authentication-mode aaa

好記性不如爛筆頭

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容