Scp command

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 02:19, 1 July 2007 (edit)
Wildblue (Talk | contribs)
m (Wiederhergestellt zur letzten Änderung von Jrs.jrs)
← Previous diff
Current revision (19:18, 8 May 2010) (edit) (undo)
Glenn (Talk | contribs)
(catchg)
 
(7 intermediate revisions not shown.)
Line 1: Line 1:
-[[Flashing with SCP]]+You are here: '''[[Main_Page|DD-WRT wiki mainpage]] / [[Index:Scripting|Scripting]] / [[Telnet/SSH_and_the_Command_Line|SSH/Telnet & The CLI]] / scp '''
-Occasionally the DD-WRT webif will decline to accept a valid firmware. SCP is a good alternate as long as you've enabled sshd on the 'Services' page.+Secure Copy - Copy files via SSH
 + 
 +<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>
 + 
 + 
 +<u>Example</u>: <font color=red>Flashing with SCP</font>
 + 
 +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 19:
'''mtd -r write /tmp/remote_name.trx linux''' '''mtd -r write /tmp/remote_name.trx linux'''
 +
 +
 +[[WinSCP]] (easy to use GUI for SCP)
 +
 +[[Category:Command-line reference]]

Current revision

You are here: DD-WRT wiki mainpage / Scripting / SSH/Telnet & The CLI / scp

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


Example: Flashing with SCP

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)