cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
48336
Views
17
Helpful
4
Replies

copying file from linux to router flash with scp

troy.lynch
Level 1
Level 1

I'm trying to figure out how to copy a file from scp on a linux box to flash on my router. I've got scp server configured on the router and can copy the running-config from the router and to the router using the following

scp running-config user@192.168.1.1:running-config

what I'm looking to do is copy files to the flash on the router I tried this

scp filename user@192.168.1.1:/flash/filename

which doesnt work says file does not exist or something like that. Is there a trick or something I'm missing in the path to get it over to the flash drive? Any help would be great.

Thanks

troy

1 Accepted Solution

Accepted Solutions

you are using the wrong syntax. It's:

scp Source User@192.168.1.1:flash:/Destination

-- 
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni

View solution in original post

4 Replies 4

you are using the wrong syntax. It's:

scp Source User@192.168.1.1:flash:/Destination

-- 
Don't stop after you've improved your network! Improve the world by lending money to the working poor:
http://www.kiva.org/invitedby/karsteni

Thanks Karsten! I tried that lastnight for some reason it wasnt working but today it worked. You are great thanks for the quick reply!

I need to do the reverse: Copy a file from compact flash location to my home drive on a Linux jump server. What's the syntax for that?
Show tech output available at 0/7/CPU0 : compactflash:/showtech/showtech-file.tgz

What you will be needing is

copy compactflash:/showtech/showtech-file.tgz scp:

Then this will prompt you for the following:
- IP Address

- Destination Filename

- Username

- Password