PuTTY gives you command-line access to OpenWrt.
- Download PuTTY, get the 32bit(or 64bit)
putty.exe
from theAlternative binary files
section. - Start
putty.exe
on your Windows client → PuTTY’s login window pops up. - go to the
Session
category of PuTTY’s login window, look for the fieldHost Name (or IP address)
and simply enter the IP-address (e.g. 192.168.1.1) of your OpenWrt device, keep the default provided port 22. - Click the
Open
button at the Bottom to open a connection. This will pop up a shell windows, asking tologin as
. Login as root with the OpenWrt password you have defined some time before. If you have not yet set a password yet on “root”, you will not be asked for the password. - Done, you are logged into the OpenWrt command line.
Setting up key-based authentication.
- Generate a key pair using
puttygen.exe
. Save the private key to the PC and add the public key to/etc/dropbear/authorized_keys
on your OpenWrt device. - Connection → SSH → Auth: In the box “Authentication Parameters” under “Private key file for Authentication” state the path to your private key file for this connection (e.g. the
openwrt.ppk
file you created before). Best is to click “Browse…” and select the file via the file dialog.
Automating connections.
- Connection → Data: In the box “Login details” enter the “Auto-login username” which is
root
. - Load, save or delete a stored session, enter
openwrt.lan
in Saved Sessions and click the Save button. - To make a PuTTY shortcut with an automatic login, create one and append the saved session with an
@
sign, for example call PuTTY with:putty.exe @openwrt.lan
正文完