Dell Networking SONiC:Secure Shellベースのログイン

Summary: この記事では、Dell Networking SONiCでのSecure Shell (SSH)ベースのログインについて説明します。この記事では、Dell SONiC 4.1を実行しているスイッチを使用します。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

デフォルトでは、SONiCはDynamic Host Configuration Protocol (DHCP)を使用してDHCPサーバーから管理インターフェイス(Management0)のIPアドレスを取得します(「DHCPサーバーの使用」を参照)。リモートSSHログインをセットアップしてスイッチを構成するには、次の手順を実行します。

すべてのSONiCデバイスは、シリアル コンソールベースとSSHベースの両方のログインをサポートします。SSHログインを使用する場合は、管理インターフェイス(Management0)のIPアドレスにログインします。
  1. コンソールから、またはデフォルトのユーザー名adminとパスワードYourPaSsWoRdを使用してSSH接続を介してLinuxシェルにログインします。
[Console]で次の操作を行います。
Debian GNU/Linux 9 sonic ttyS1

sonic login: admin
Password: YourPaSsWoRd
リモート サーバーからSONiCへのSSH接続は、管理インターフェイスのIPアドレスに接続することで実行できます。 
user@debug:~$ ssh admin@sonic_ip_address(or SONIC DNS Name)
admin@sonic's password:
  1. 初めてログインすると、パスワードの変更を求めるプロンプトが表示されます。手順に従ってパスワードを変更し、Linuxシェルにログインします。初めてログインしない場合は、手順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アドレスが設定されている必要があります。
[Console]で次の操作を行います。
Debian GNU/Linux 9 sonic ttyS1

sonic login: admin
Password: YourPaSsWoRd
リモート サーバーからSONiCへのSSH接続は、SONiC IPに接続することで実行できます。
user@debug:~$ ssh admin@sonic_ip_address(or SONIC DNS Name)
admin@sonic's password:
  • admin役割でログインすると、Linuxシェルに配置されます。プロンプトは次のとおりです。
admin@sonic:~$.
管理フレームワークCLIにアクセスするには、SONiC CLIコマンドを入力します。
  • オペレーター ロールでログインすると、Management Framework CLIに配置されます。プロンプトは次のとおりです。
sonic#
オペレーター ユーザーはLinuxシェルにアクセスできません。

Affected Products

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
Article Properties
Article Number: 000218783
Article Type: How To
Last Modified: 08 Nov 2025
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.