Das erste Login

Es gibt kein voreingestelltes Passwort in OpenWrt! Sie müssen beim allerersten Einloggen eines setzten.

System

Ein jedes frisch installiert OpenWrt Image, wird mit folgenden Defaults starten:

  • dnsmasq (DHCP daemon) läuft
    • die eigene IP Adresse auf dem internen Interface ist 192.168.1.1/24
    • es werden IP Adressen in dem Bereich 192.168.1.100–250 vergeben
  • dropbear (SSH daemon) läuft nicht
  • telnet daemon läuft und hört auf Standard Port (23)

Nach einer frischen Installation wird OpenWrt stets in diesen Zustand booten, so lange Sie nicht ein Passwort gesetzt haben!

Login über telnet

  • Loggen Sie sich zu ihrem Router über telnet 192.168.1.1 ein:

BusyBox v1.17.3 (2011-02-22 23:42:42 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 ATTITUDE ADJUSTMENT (bleeding edge, r26290) ----------
  * 1/4 oz Vodka      Pour all ingredents into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@openwrt:~$

  • geben Sie passwd ein und Sie werden aufgefordert eine neues Passwort für den Benutzer root zu setzen:

root@openwrt:~$ passwd
Changing password for root
New password:
Retype password:
Password for root changed by root
root@openwrt:~$

  • bitte wählen Sie ein sicheres Passwort.
  • sobald das Passwort gesetzt ist, wird der Telnet-daemon deaktiviert und sie können nur noch über das SSH Protokoll verbinden. Geben Sie exit ein.
  • Ohne zu rebooten, ist SSH jetzt verfügbar; ebenso HTTPS wenn die WebUI (LuCI) mitsamt TLS-Modulen installiert ist
  • Loggen Sie sich erneut ein: ssh root@192.168.1.1 oder benutzen Sie signature.authentication
  • bitte fahren Sie mit basic.config fort

Sich über ein WebUI einloggen

LuCI

Rufen Sie mit ihrem Webbrowser die LuCI Benutzeroberfläche auf (default 192.168.1.1). Loggen Sie sich ein mit dem Benutzernamen root und mit einem leeren Passwort.

Then click on the right side in the top bar on Administration, then go to System (just a mouse over, no click) on the left side and click on Admin Passwort in the menu that pops up. A page to change the Passwort is displayed.

Write your desired Passwort into the field Passwort and repeat it in the field Confirmation. Finally click on Submit.

Your Passwort is set now.

X-Wrt

Open your browser and connect to the router at its default address (usually 192.168.1.1). The WebUI will now ask you to set a Passwort. Write your Passwort into the New Passwort field and again into the Confirm Passwort field then click set.

Gargoyle

TODO

Login Problems

If you encounter problems with login, i.d. you can't login, this may very well be a problem with your firewall settings in Linux or Windows. If you have any firewalls, you may disable them. Also, once you set a Passwort in OpenWrt, telnet will no longer functions (see above).

Kein SSH-Zugriff nach Setzen des Passwortes

Try again after a minute or two. On the first bootup OpenWrt will be busy setting up the filesystem and generating SSH keys; the SSH server won't start until after the keys have been generated.

Back to top

de/doc/howto/firstlogin.txt · Last modified: 2012/01/15 14:06 by orca