10-02-2023
02:42 PM
- last edited on
10-05-2023
02:32 AM
by
Translator
Hello! I am trying to move a file from my computer to a router using SCP. I am very new to the router world, but have read a lot of documentation and Cisco Community posts on SCP. Still struggling though and need some insight! My router just has the default config so I would also need to activate SSH (from what I've read). Commands I've been entering are below.
I don't know if these are in the right order, or if I should be doing these in a different order. Not sure if I'm missing something too. After I try the
copy scp....
command at the bottom, it either times out and nothing happens OR, more common, it asks for a password and then says Authentication Failed after I enter it. A few questions beyond the commands are 1) is the username in the
copy scp
command supposed to be my computer username, or the username I created in the AAA model, 2) is the ip address in the
copy scp...
command supposed to be the ip address of my computer, or the
router ip
address? Also saw some people have entered the
copy
command in the
router
command line, and others in the PC's command line. As you can see, I'm quite stuck and appreciate any advice.
Thanks in advance for any help!
aaa new-model
aaa authentication login default local
aaa authorization exec default local
username tiger privilege 15 password 0 lab
ip ssh time-out 120
ip ssh authentication-retries 3
ip scp server enable
sometimes I enter the commands below - I run into issues either way
hostname cisco1
crypto key generate rsa modulus 2048
copy scp://MyComputerUsername@my.comp.ip.address//app/tftpboot/FileName.txt flash:
OR
copy scp: flash:
Solved! Go to Solution.
10-02-2023 10:55 PM - edited 10-03-2023 05:25 AM
Hello @amroberts895
copy scp <source> <destination>
Then do #copy scp: flash:
You should be invited to Enter source filename...the absolute path where the bin file is.
After that enter the IP of the Cisco Switch/Router
Finally, enter AAA credentials !
10-02-2023 10:55 PM - edited 10-03-2023 05:25 AM
Hello @amroberts895
copy scp <source> <destination>
Then do #copy scp: flash:
You should be invited to Enter source filename...the absolute path where the bin file is.
After that enter the IP of the Cisco Switch/Router
Finally, enter AAA credentials !
10-03-2023
06:18 AM
- last edited on
10-05-2023
02:36 AM
by
Translator
Thanks so much ! Just to make sure I'm understanding, for the
copy scp <source> <destination>
command that I enter first, how would that look? E.g.,
#copy scp
CompUsername@ip.add.re.ss AAAUser@ip.add.re.ss" ?
Or am I not on the right track with that?
Also, since I don't need to enable the ip scp server, do I also not need to enable the crypto keys? Or is that still required?
Thanks again, really appreciate your help!
10-03-2023 08:02 AM
ip scp server is mandatory, i delete my wrong sentence.
The command is from your computer ? If yes just add the full path of the fille:
10-03-2023 11:05 AM
Ahh okay. For some reason it's saying "No such File or Directory" after I enter all that information. The IP address should be the IP address of the GigabitEthernet I assigned, right? (I'm connecting to the router over an ethernet cord, so the IP address of the ethernet connection is different from the router IP address).
10-03-2023 11:21 AM - edited 10-03-2023 11:21 AM
The IP address on your router should be reachable from your computer. Whatever the IP is, it should be reachable... could be your interface Gig or a Loopback.
10-03-2023 11:33 AM
10-03-2023 12:06 PM
Thanks! I actually started using that guide today and it helped a lot. I finally figured it out! Appreciate all your help. The main issue was I needed to go into my main terminal window to move the file over, rather than the router terminal window. So all set, I will mark your first answer as the solution.
10-03-2023 12:18 PM
Great news @amroberts895 !
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide