Use telnet or SSH to log on to the router's Linux terminal in Windows and brush the router firmware

Source: Internet
Author: User
Tags ssh ssh access ssh port

Linux System terminal using Telnet protocol to login router under Windows

(for example, the router for the DD-WRT firmware.) )

1.Telnet is a feature that Windows 7 is equipped with, just default is not turned on, enter: Start-Control Panel-Program-turn Windows features on or off;
2. Check "Telnet Server", "Telnet client" two items, press "OK" key after waiting for a while to open the Telnet function.
3. Access to Windows command line prompt interface;
4. Enter the "Telnet" return to display the "Microsoft telnet" prompt;
5. Enter "O" carriage return, show "< to >" prompt;
6. Input DD-WRT routing ip, generally: "192.168.1.1", display "XXX login:" (XXX for router name) prompt;
7. Enter "root" (ie dd-wrt default Administrator account, not your custom Administrator account), display "Password:" hint;
8. Enter your password to define the Administrator account (the input procedure screen will not display password characters or masks), display the Dd-wrt welcome character and "root@xxx:~#" (XXX is the router name) prompt, to indicate that Telnet login succeeded.


Second, Windows under the SSH protocol to log on to the router's Linux system terminal

(for example, a router that Gargoyle router firmware.) )

1. Enter the management interface of Gargoyle router;
2. Open the system's router access page;
3. Check the Enable Remote SSH access entry in the SSH access box;
4. Enter the port number in the local SSH port and remote SSH access input box, which defaults to 22;
5. Download Putty's zip version, which is based on the MIT Protocol (similar to the BSD, GPL-compliant) Open source software, can be used in the x86 Windows system, small size, green installation-free;
6. Decompression Putty Zip version, the implementation of PuTTY.exe, the appearance of Putty configuration interface;
7. Open the session item in the category directory tree, appear basic options for your PuTTY sessiond page;
8. Find the host Name (or IP address) input box, fill in the router ip,gargoyle default is "192.168.1.1";
9. Hit the port of the input box, fill in the 4th Step SSH service ports, the default is 22;
10. Press the Open key, pop-up Putty security Alert Prompt window;
11. According to the prompts, generally directly press the "no" key on it, followed by the command Line window, will prompt "login as:";
12. Enter Administrator account name "root" (Gargoyle is "root"), hint "root@192.168.1.1 ' s password:";
13. Enter the password for the Administrator account (the character or mask will not be displayed), Gargoyle Welcome Interface and "Root@xxx:" prompt, indicating the success of SSH login;


third, use HFS to establish the local server of the router firmware file

In order to access the Linux system terminal in the router firmware in telnet or SSH, it is convenient to invoke the Wget tool to download the router firmware file on the local storage, first prepare the HFS software.
HFS Full Name HTTP file server (Hypertext Transfer Protocol file servers), is a GPL based software, can be used in x86 windows system, small size, green installation-free.
The router firmware file is downloaded and stored on the local memory, then put into the HFS, the following methods:

1. Open HFS, enter the main Menu "menu" "IP Address" submenu;
2. Check the intranet IP, the general intranet IP is "192.168.x.x" form, that is, the route assigned to the current network card IP;
3. Click the right mouse button in the virtual File System tree Directory box to eject the shortcut menu;
4. Select "Add File" to open the local storage router firmware "Rf.bin" and see "Rf.bin" appearing in the Tree directory box (virtual file system) to indicate that it has been added;
5. You can click the right mouse button on "Rf.bin" in the "Virtual file system" Tree directory box to eject the shortcut menu, select "Browse", if the Web browser pop-up window displays the download "Rf.bin" file, that means the local firmware file server runs successfully.


four, in the Router firmware Linux system terminal to brush the router firmware

1. telnet or SSH login to the router firmware Linux system terminal;
2. Input "Cd/tmp" and enter, namely enter the router system "/tmp" directory;
3. With Wget (a GPL based protocol, can automatically download files from the network software, support through HTTP, HTTPS, FTP three most common TCP/IP protocol download. Download the router's firmware file from the Internet to the current directory "/tmp", such as "wget http://192.168.1.100/rf.bin", which means using wget IP 192.168.1.100 HTTP Server root directory Rf.bin files are downloaded to the current directory, Rf.bin must be a sysupgrade version of the firmware file.
4. Enter the "mtd-e linux-r write rf.bin linux" command, which means that the Rf.bin file in the current directory is brushed as a router firmware.
5. Wait for a while, the Telnet interface shows "lost host connection", and so on, and so on, the route led is again lit that means the brush into success.
Supplementary note: My Buffalo whr-g300n V2 in the wireless mode after the whr-g301n of the Gargoyle firmware, Telnet in the display "[W]", "[E]" flashing a moment after the stop, no longer no hint, at this time found the router in addition to power lights long bright, Router lights flashing outside the other lights are out, and then, router flashing into a long bright, at this point, you can link routing, open the browser input "192.168.1.1", enter the password "password" can be normal login gargoyle.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.