cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
501
Views
7
Helpful
12
Replies

SCP - File transfer Cisco switch

RS19
Level 4
Level 4

I have a plain Cisco 3650 switch. I need to transfer the running config from this switch to a PC running SCP (Solarwinds)

The PC is directly connected to the switch & the ping is reachable between the switch and the PC.

SCP is enabled in the solarwinds tool running in the PC.

When I try to tranfer the running config using SCP it is not happening. 
It says the remote host is not responding.

Not sure how to troubleshoot t.

Let me know how to troubleshoot and what basic commands are required in the swith for the successful scp transfer.

1 Accepted Solution

Accepted Solutions

I share video and I mention you need SSH key and password and enable SCP then you can copy, 
did you review the video ?

MHM

View solution in original post

12 Replies 12

SCP is build on SSH 
so the SW need to have SSH key before it can connect to server and exchange file 
so 
add domain to SW 
generate rsa key general in SW 

then check scp again 

thanks 

MHM

can u please give me the exact commands which should be configured in the switch ?

below video how you can config SCP in SW

https://www.youtube.com/watch?v=95E4d5KSz7E&t=14s

 

please please please dont forget
1-add below two command before command aaa new-model 
username <> privilege 15 password <>
enable password <> 

2- dont wr (dony copy run into startup) until you can fully sure you can access to SW via console and VTY

How to backup the running-config and IOS Operating system image from a Cisco IOS router using SSH Copy Protocol (SCP).

RS19
Level 4
Level 4

The video which you have shared is sharing file from PC to Cisco switch.|
I am looking to transfer from Cisco switch to PC.

I re attached nee video check it 

MHM

johnlloyd_13
Level 9
Level 9

hi,

can you do FTP or TFTP instead?

make sure the switch can reach/ping the remote PC and there's no PC firewall blocking the app.

I want to use either SCP or SFTP. I cant use FTP or TFTP.

shambhu.kumar
Level 1
Level 1

- your switch should have SSH key enabled
- Enable SCP with below command in switch
WS-C3650(config)#ip scp server enable
WS-C3650(config)#

Copy your running config file in flash
WS-C3650#copy running-config flash:
Destination filename [running-config]?
35490 bytes copied in 2.047 secs (17338 bytes/sec)

WS-C3650#dir
7776 -rw- 35490 Jun 26 2024 07:48:58 +03:00 running-config


from command prompt type below command with user name and switch IP

C:\IOS-XE>scp username@switchip:running-config C:\IOS-XE
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

it will prompt for password

 

ok will try this. 
2 questions. 
1. Is there any way I can do SCP from the switch to the windows PC ?
2. Is there any dependency on the encrytion alogirthm supported by the switch ?

Any reply or help ?

Hello RS9

source switch is 10.128.228.4 and destination is 10.128.228.11
copied from 10.128.228.4 to 10.128.228.11

10.128.228.4#copy flash:cat9k_iosxe.17.06.05.SPA.bin scp://user-name@10.128.228.11
Address or name of remote host [10.128.228.11]?
Destination username [user-name]?
Destination filename [cat9k_iosxe.17.03.06.SPA.bin]?
Writing cat9k_iosxe.17.03.06.SPA.bin CCC

it will prompt for password,

Ip scp server enable and crypto key should be enabled.

 

Thanks

I share video and I mention you need SSH key and password and enable SCP then you can copy, 
did you review the video ?

MHM

Review Cisco Networking for a $25 gift card