Dell Networking SONiC: Secure Shell-baseret login
Riepilogo: Denne artikel handler om Secure Shell (SSH)-baseret login i Dell Networking SONiC. Denne artikel bruger en switch, der kører 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
Som standard bruger SONiC DHCP (Dynamic Host Configuration Protocol) til at hente en IP-adresse til administrationsgrænsefladen (Management0) fra en DHCP-server (se Brug af en DHCP-server). Sådan konfigureres et SSH-fjernlogin til konfiguration af switchen:
Alle SONiC-enheder understøtter både serielt konsolbaseret og SSH-baseret login. Hvis du bruger et SSH-login, skal du logge på administrationsgrænsefladens IP-adresse (Management0).
Alle SONiC-enheder understøtter både serielt konsolbaseret og SSH-baseret login. Hvis du bruger et SSH-login, skal du logge på administrationsgrænsefladens IP-adresse (Management0).
- Log ind på Linux-shellen fra konsollen eller via en SSH-forbindelse ved hjælp af standardbrugernavnet admin og adgangskoden YourPaSsWoRd.
På konsol:
Debian GNU/Linux 9 sonic ttyS1 sonic login: admin Password: YourPaSsWoRd
SSH fra enhver fjernserver til SONiC kan udføres ved at oprette forbindelse til IP-adressen i administrationsgrænsefladen.
user@debug:~$ ssh admin@sonic_ip_address(or SONIC DNS Name) admin@sonic's password:
- Første gang du logger på, bliver du bedt om at ændre din adgangskode. Følg trinene for at ændre din adgangskode og logge ind på Linux-skallen. Hvis dette ikke er dit første login, skal du gå til trin 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-login
Som standard bruger SONiC DHCP til at hente en IP-adresse til administrationsgrænsefladen (Management0) fra en DHCP-server (se Brug af en DHCP-server). Sådan konfigureres et eksternt SSH-login for at konfigurere switchen:
- Log på switchen. Hvis du ikke allerede har ændret din adgangskode efter login, er standardoplysningerne brugernavn admin og adgangskode YourPaSsWoRd.
- Deaktiver DHCP-klienten, og konfigurer en IP-adresse på administrationsgrænsefladen. Konfigurer en administrationsrute til fjernadgang.
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
- Log på Management Interface-IP-adressen (Management0) i en SSH-session. Administrationsgrænsefladen skal være UP og have en IP-adresse.
På konsol:
Debian GNU/Linux 9 sonic ttyS1 sonic login: admin Password: YourPaSsWoRd
SSH fra enhver fjernserver til SONiC kan udføres ved at oprette forbindelse til SONiC IP.
user@debug:~$ ssh admin@sonic_ip_address(or SONIC DNS Name) admin@sonic's password:
- Når du logger ind med en administratorrolle, placeres du i Linux-skallen. Prompten er:
admin@sonic:~$.Indtast kommandoen SONiC CLI for at få adgang til Management Framework CLI.
- Når du logger på med en operatørrolle, placeres du i CLI for Management Framework. Prompten er:
sonic#En operatørbruger kan ikke få adgang til Linux-shellen.
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-ONProprietà 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.