WinSCP

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 14:45, 7 January 2008 (edit)
S2s2 (Talk | contribs)
m (Added section at bottom about difference between text files on windows and all other os's)
← Previous diff
Revision as of 14:47, 7 January 2008 (edit) (undo)
S2s2 (Talk | contribs)
m (structure)
Next diff →
Line 1: Line 1:
For Windows XP (or other varients), this article is just an explanation on how to use WinSCP to transfer files and manage folders on the writable storage areas within the router. A lot of articles refer to using WinSCP in the DD-WRT Wiki, however few go into any detail, assuming instead the user knows how to use WinSCP or even what it is. For Windows XP (or other varients), this article is just an explanation on how to use WinSCP to transfer files and manage folders on the writable storage areas within the router. A lot of articles refer to using WinSCP in the DD-WRT Wiki, however few go into any detail, assuming instead the user knows how to use WinSCP or even what it is.
-WinSCP gives a norton-commander like interface for transferring files and creating folders on the router. Local content is on the left, router content on the right.+WinSCP gives a norton-commander like interface for transferring files and creating folders on the router.
# Enable SSH in the Web administration page of the router. The default port of 22 is fine. Enable password authentication. Authorized keys leave blank. # Enable SSH in the Web administration page of the router. The default port of 22 is fine. Enable password authentication. Authorized keys leave blank.
Line 8: Line 8:
# You can save the session now for later use. # You can save the session now for later use.
# When connecting there is a 'command 'groups' ' error and possibly a 'pwd' error. Ignore these. # When connecting there is a 'command 'groups' ' error and possibly a 'pwd' error. Ignore these.
-# Then the window appears of the file manager.+# Then the window appears of the file manager. Local content is on the left, router content on the right.
WinSCP can be used to save information on the DD-WRT-enabled router in /jffs, if you have JFFS turned on and there is any space left in the flash. Or WinSCP can save to the SD Card, mounted in /mmc, or other attached storage mounted in the DD-WRT file system. WinSCP can be used to save information on the DD-WRT-enabled router in /jffs, if you have JFFS turned on and there is any space left in the flash. Or WinSCP can save to the SD Card, mounted in /mmc, or other attached storage mounted in the DD-WRT file system.

Revision as of 14:47, 7 January 2008

For Windows XP (or other varients), this article is just an explanation on how to use WinSCP to transfer files and manage folders on the writable storage areas within the router. A lot of articles refer to using WinSCP in the DD-WRT Wiki, however few go into any detail, assuming instead the user knows how to use WinSCP or even what it is.

WinSCP gives a norton-commander like interface for transferring files and creating folders on the router.

  1. Enable SSH in the Web administration page of the router. The default port of 22 is fine. Enable password authentication. Authorized keys leave blank.
  2. Download WinSCP from [[1]] and install it.
  3. Host name: router ip, User Name: always 'root', even if you have changed the username for the Web interface Password: router password. Private key file: leave empty. File Protocol: SCP, not SFTP.
  4. You can save the session now for later use.
  5. When connecting there is a 'command 'groups' ' error and possibly a 'pwd' error. Ignore these.
  6. Then the window appears of the file manager. Local content is on the left, router content on the right.

WinSCP can be used to save information on the DD-WRT-enabled router in /jffs, if you have JFFS turned on and there is any space left in the flash. Or WinSCP can save to the SD Card, mounted in /mmc, or other attached storage mounted in the DD-WRT file system.

Windows and DOS platforms only, use Carriage Return and New Line codes at the end of each line, within text files. Unix only uses New Line. The difference is between text files generated or edited on a Windows platform, and Unix (and almost all other operating systems are similar to Unix, not Windows). Editing of a script file on an SD Card plugged directly into a card reader on a PC with Windows, must use a special editor to create or modify the script or text file, like jedit, or unix2dos and dos2unix utility to convert the file.

Bonus: Transfer files with WinSCP and text is automatically converted. And besides, it's more convenient than a sneakernet.