User Tools

Site Tools


doc:howto:firstlogin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:howto:firstlogin [2013/07/03 11:01]
lorema
doc:howto:firstlogin [2016/02/02 18:08] (current)
binarydog remove confusing statement (setting the password is what we are trying to do, using the password from first login does not make any sense)
Line 1: Line 1:
 +====== OpenWrt – First Login ======
  
 +| {{:​meta:​icons:​tango:​dialog-information.png?​nolink}} | There is no preset password in OpenWrt! You need to set one at your first login per ssh, telnet or the WebUI. |
 +
 +|{{:​meta:​icons:​tango:​48px-dialog-warning.svg.png?​nolink&​24}}| **Pre-built trunk images do not come with any web interface or GUI**. You will only be able to login using the CLI, unless you install one yourself: [[doc:​howto:​luci.essentials|LuCI Essentials]] ​ |
 +
 +|{{:​meta:​icons:​tango:​48px-dialog-warning.svg.png?​nolink&​24}}| **Telnet was removed from trunk by 46809. In a newer trunk build, only ssh is available.** ​ |
 +
 +=== Command-line Interface(CLI) ===
 +    * using Telnet (only if you are using Chaos Calmer 15.05 (or earlier) and you haven'​t already set up a password)
 +    * via SSH (employ [[wp>​PuTTY]] , [[wp>​WinSCP]] or [[https://​wiki.gnome.org/​Apps/​HotSSH|HotSSH]])
 +
 +=== HTTP (using your web browser) ===
 +    * if there is no WebUI (Web user interface) in the image, you can swiftly install one following this HowTo: **[[LuCI]]**
 +    * for other WebUIs have a look at the [[webinterface.overview]]
 +//Please note: (HTTP**S** access is only available after [[firstlogin|First Login]])//
 +
 +===== OpenWrt System Default =====
 +{{page>​doc:​openwrt_system_default_features&​noheader&​nofooter&​noeditbtn}}
 +
 +
 +
 +===== Login with telnet =====
 +  * login to your router via **''​telnet 192.168.1.1''​**:<​code>​
 +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:​~$
 +</​code>​
 +  * type **''​passwd''​** into the prompt. You will be prompted to set a new password for the user root:<​code>​
 +root@openwrt:​~$ passwd
 +Changing password for root
 +New password:
 +Retype password:
 +Password for root changed by root
 +root@openwrt:​~$
 +</​code>​
 +  * please **choose** a <color red> __**//​secure password//​**__</​color>,​ (consult e.g [[http://​xkcd.com/​936/​|password strength]])
 +  * after you set a password the telnet daemon will be disabled, type ''​exit''​ into the prompt
 +  * without reboot, SSH is now available; so is HTTP//S// if the WebUI ([[doc:​howto:​luci.essentials|LuCI]]) is installed with it's [[wp>​Transport Layer Security|TLS]]-modules
 +  * login again with ''​ssh root@192.168.1.1''​ or use **//​[[doc/​techref/​signature.authentication]]//​**
 +  * proceed with [[basic.config]]
 +
 +
 +===== Login to WebUI =====
 +==== LuCI ====
 +Open your browser and connect to the router at its default address (usually 192.168.1.1). Login using username ''​root''​ with an ''​empty password''​.
 +
 +Make sure your browser accepts (session) cookies. LuCI login fails if password is set and session cookies cannot be accessed.
 +
 +Then click on the left in the top bar on //​Administration//,​ then go to //System// in the bar underneath.
 +A page to change the password is displayed. ​
 +
 +{{:​doc:​howto:​admin_paswword:​admin_password-luci.png|}}
 +
 +Write your desired password into the field //​Password//​ and repeat it in the field //​Confirmation//​. Finally click on //Save & Apply//.
 +
 +Your password is set now.
 +
 +==== Gargoyle ====
 +
 +Open your browser and connect to the Web Interface at its default address (192.168.1.1) the username is //​**admin**//​ OR //​**root**//​ and the password is //​**password**//​.
 +You can ssh to the router at the default address (192.168.1.1) the username is //​**root**//​ the password is //​**password**//​. ​
 +Unlike OpenWrt the telnet port is not open.
 +
 +===== 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 password in OpenWrt, telnet will no longer functions (see above).
 +
 +==== No SSH access after Setting Password ====
 +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.
 +
 +==== Telnet connection immediately closes ====
 +Once you've set a password new telnet connections are immediately terminated. ​ You must SSH at that point.