电竞比分网-中国电竞赛事及体育赛事平台

分享

華為s5700-------SSH登錄配置方法

 昵稱63478486 2019-04-17

SSH登錄配置方法

【配置思路】1.在本地的SSH服務(wù)端生成本地需要的密鑰對(duì),2.SSH服務(wù)端配置用戶的賬號(hào)、密碼、權(quán)限、3.做通用戶和SSH服務(wù)端的通信。

【設(shè)備型號(hào)】華為switch-S5700s

————1:

[SW1]   rsa local-key-pair create             #創(chuàng)建本地密鑰對(duì)


The key name will be: SW1_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]:1024
Generating keys...
.................++++++++++++
......................++++++++++++
..............++++++++
.........++++++++

————2:配置VTY用戶,只能用SSH進(jìn)入

[sw1]user-interface vty 0 4

[sw1-ui-vty0-4]authentication-mode aaa

[sw1-ui-vty0-4]protocol inbound ssh

—————3:創(chuàng)建SSH用戶及密碼

#aaa

#local-user NAME password cipher 123456

#local-user NAME privilege level 3

#local-user NAME service-type ssh

—————4.配置ssh用戶的認(rèn)證方式和服務(wù)方式

[huawei] ssh user NAME authentication-type password

[huawei] ssh user NAME service-type {sftp | stelnet | all } 

[huawei] stelnet server enable               #打開ssh服務(wù)

【備注模塊】

1.最開始配置的時(shí)候 全部保存完,掉電重啟配置居然沒了。

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多