cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2200
Views
0
Helpful
8
Replies

SCP Process for Beginner (including AAA and SSH)

amroberts895
Level 1
Level 1

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:

 

1 Accepted Solution

Accepted Solutions

M02@rt37
VIP
VIP

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 !

 

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

8 Replies 8

M02@rt37
VIP
VIP

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 !

 

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Thanks so much ! Just to make sure I'm understanding, for the

copy scp <source> <destination&gt

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!

@amroberts895 

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:

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

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).

@amroberts895 

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.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

M02@rt37
VIP
VIP

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.

Great news @amroberts895

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.