Dell Networking SONiC:安全殼層型登入

Riepilogo: 本文說明 Dell Networking SONiC 中安全殼層 (SSH) 型登入的相關資訊。本文使用執行 Dell SONiC 4.1 的交換器。

Questo articolo si applica a Questo articolo non si applica a Questo articolo non è legato a un prodotto specifico. Non tutte le versioni del prodotto sono identificate in questo articolo.

Istruzioni

根據預設,SONiC 使用動態主機設定通訊協定 (DHCP) 從 DHCP 伺服器取得管理介面 (Management0) 的 IP 位址 (請參閱使用 DHCP 伺服器)。若要設定遠端 SSH 登入以設定交換器:

所有 SONiC 裝置都支援序列主控台型和 SSH 型登入。如果您使用 SSH 登入,請登入管理介面 (Management0) IP 位址。
  1. 使用預設使用者名稱 admin 和密碼 YourPaSsWoRd 從主控台或透過 SSH 連線登入 Linux shell。
在主控台:
Debian GNU/Linux 9 sonic ttyS1

sonic login: admin
Password: YourPaSsWoRd
連線至管理介面的 IP 位址,即可完成從任何遠端伺服器至 SONiC 的 SSH。 
user@debug:~$ ssh admin@sonic_ip_address(or SONIC DNS Name)
admin@sonic's password:
  1. 首次登入時,系統會提示您變更密碼。請依照步驟變更密碼,然後登入 Linux Shell。如果這不是第一次登入,請前往步驟 3。
You are required to change your password immediately (root enforced) 
Changing password for admin. 
(current) UNIX password: YourPaSsWoRd 
Enter new UNIX password: ********* 
Retype new UNIX password: ******** 
Linux sonic 4.9.0-11-2-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 
You are on
SONIC
-- Software for Open Networking in the Cloud – 
Unauthorized access and/or use are prohibited. 
All access and/or use are subject to monitoring. 
Help: http:// azure.github.io/SONiC/ 
admin@sonic:~$


SSH 登入
根據預設,SONiC 使用 DHCP 從 DHCP 伺服器取得管理介面 (Management0) 的 IP 位址 (請參閱使用 DHCP 伺服器)。若要設定遠端 SSH 登入以設定交換器:

  1. 登入交換器如果您在登錄后尚未更改密碼,則預設憑據為使用者名 admin 和密碼 YourPaSsWoRd。
  2. 停用 DHCP 用戶端,並在管理介面上設定 IP 位址。設定遠端存取的管理路由。
sonic# config terminal
sonic(config)# interface Management 0
sonic(conf-if-Management0)# ip address 10.1.1.10/24 gwaddr 10.1.1.1
sonic(conf-if-Management0)# no shutdown
sonic(conf-if-Management0)# exit
sonic(config)# exit
sonic# write memory
  1. 在 SSH 工作階段中登入管理介面 (Management0) IP 位址。管理介面必須為 UP 狀態,並具有 IP 位址。
在主控台:
Debian GNU/Linux 9 sonic ttyS1

sonic login: admin
Password: YourPaSsWoRd
連線至 SONiC IP 皆可完成從任何遠端伺服器到 SONiC 的 SSH。
user@debug:~$ ssh admin@sonic_ip_address(or SONIC DNS Name)
admin@sonic's password:
  • 當您以管理員角色登入時,系統會將您置於 Linux shell 中。提示是:
admin@sonic:~$.
若要存取管理框架 CLI,請輸入 SONiC CLI 命令。
  • 當您以操作員角色登錄時,您將被置於管理框架 CLI 中。提示是:
sonic#
操作員使用者無法存取 Linux Shell。

Prodotti interessati

Enterprise SONiC Distribution, PowerSwitch S5148F-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch S5448F-ON, PowerSwitch Z9264F-ON
Proprietà dell'articolo
Numero articolo: 000218783
Tipo di articolo: How To
Ultima modifica: 08 nov 2025
Versione:  3
Trova risposta alle tue domande dagli altri utenti Dell
Support Services
Verifica che il dispositivo sia coperto dai Servizi di supporto.