日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

华为数通(一):如何使用ssh console telnet来连接设备

發布時間:2024/8/1 编程问答 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 华为数通(一):如何使用ssh console telnet来连接设备 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一.如何使用telnet進行連接

1. 需要在設備上創建一個可以登陸做的賬戶(在AR1上)

<R1>system-view //進入系統視圖 [R1]aaa //進入aaa模式 [R1-aaa]local-user jah password cipher hauwei //創建賬號密碼 [R1-aaa]local-user jah privilege level 3 //設置賬號等級 [R1-aaa]local-user jah service-type telnet //設置賬號登錄方式

2. 開啟telenet服務

[R1]telnet server enable

3. 設置vty線路登陸模式

vty是虛擬線路,ssh和telent登錄都需要通過它

[R1]user-interface vty 0 4 //進入vty線路 [R1-ui-vty0-4]authentication-mode aaa //設置vty登陸方式為賬號密碼登錄

4. 通過PC進行登錄

<PC1>telnet 10.1.1.1Press CTRL_] to quit telnet modeTrying 10.1.1.1 ...Connected to 10.1.1.1 ...Login authenticationUsername:jah Password: Error: Local authentication is rejected.Logged Fail!Username:

二.如何使用ssh進行登錄?

  • 創建密鑰
  • [R1] rsa local-key-pair create
  • 創建賬號(允許ssh登錄)
  • [R1] aaa [R1-aaa] local-user jah-ssh password cipher huawei [R1-aaa] local-user jah-sshprivilege level 3 [R1-aaa] local-user jah-ssh server-type ssh
  • 開啟ssh登錄服務
  • [R1] stelnet server enable
  • 然后不知道這一步干嘛但是要用
  • [R1] ssh user jah-ssh authentication-type password
  • 設置vty線路登陸模式,允許ssh登錄
  • [R1] user-interface vty 0 4 [R1-ui-vty0-4] au aaa [R1-ui-vty0-4] protocol inbound ssh //這使得vty 0-4線路只能通過ssh登錄不能通過telnet登錄 如果是all就是都可以
  • ssh登錄設備
  • <PC1>system-view Enter system view, return user view with Ctrl+Z. [PC1]ste [PC1]stelnet 10.1.1.1 Please input the username:jah-ssh Trying 10.1.1.1 ... Press CTRL+K to abort Connected to 10.1.1.1 ... Error: Failed to verify the server's public key. Please run the command "ssh client first-time enable"to enable the first-time ac cess function and try again. [PC1]ssh client first-time enable

    三.如何使用console進行登錄?

    PC2是通過console和AR1設備進行連接的

  • 設置一個密碼給console線路
  • <R1> sys [R1] user-interface console 0 //進入console線路 [R1-ui-console0]authentication-mode password Please configure the login password (maximum length 16):huawei
  • 通過console口登錄
  • Configuration console exit, please press any key to log onLogin authenticationPassword:

    總結

    以上是生活随笔為你收集整理的华为数通(一):如何使用ssh console telnet来连接设备的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。