Scp command
From DD-WRT Wiki
(Difference between revisions)
Revision as of 23:33, 23 March 2008 (edit) Soulstace (Talk | contribs) (added to command reference) ← Previous diff |
Revision as of 23:52, 23 March 2008 (edit) (undo) Soulstace (Talk | contribs) m (usage) Next diff → |
||
Line 1: | Line 1: | ||
- | + | Secure Copy - Copy files via SSH | |
- | Occasionally the DD-WRT | + | <pre> |
+ | usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] | ||
+ | [-l limit] [-o ssh_option] [-P port] [-S program] | ||
+ | [[user@]host1:]file1 [...] [[user@]host2:]file2 | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | |||
+ | Occasionally the DD-WRT web interface will decline to accept a valid firmware. SCP is a good alternate as long as you've enabled sshd on the 'Services' page. | ||
'''scp -rp local_firmware_name.trx root@192.168.1.1:/tmp/remote_name.trx''' | '''scp -rp local_firmware_name.trx root@192.168.1.1:/tmp/remote_name.trx''' | ||
Line 8: | Line 16: | ||
'''mtd -r write /tmp/remote_name.trx linux''' | '''mtd -r write /tmp/remote_name.trx linux''' | ||
+ | |||
+ | |||
+ | [[WinSCP]] (easy to use GUI for SCP) | ||
[[Category:Commandline command reference]] | [[Category:Commandline command reference]] |
Revision as of 23:52, 23 March 2008
Secure Copy - Copy files via SSH
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 [...] [[user@]host2:]file2
Occasionally the DD-WRT web interface will decline to accept a valid firmware. SCP is a good alternate as long as you've enabled sshd on the 'Services' page.
scp -rp local_firmware_name.trx root@192.168.1.1:/tmp/remote_name.trx
Login with ssh and
mtd -r write /tmp/remote_name.trx linux
WinSCP (easy to use GUI for SCP)