華爲交換機配置ssh rsa認證登錄方式

system

rsa local-key-pair create


stelnet server enable



輸入公鑰






* * *

New Key from Linux ssh-keygen

```

system

rsa peer-public-key new


public-key-code begin

public-key-code end

peer-public-key end


```

配置ssh用戶 

```

ssh user admin

ssh user admin authentication-type rsa

ssh user admin assign rsa-key new

ssh user admin service-type stelnet

```

如果沒有使用ssh user命令配置相應的SSH用戶,則可以直接執行

`ssh authentication-type default password`命令爲用戶配置SSH認證缺省採用密碼認證,在用戶數量比較多時,對用戶使用缺省密碼認證方式可以簡化配置,此時只需再配置AAA用戶即可。

* * *

```

user-interface con 0

set authentication password cipher sXXXXXX

aaa

local-user admin service-type ssh 

user-interface vty 0 4

protocol inbound ssh

user-interface vty 16 20

authentication-mode aaa

protocol inbound ssh


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章