File upload to Cisco device with SSH

If you need to upload a file (e.g. IOS image) to a Cisco device and you don't have a TFTP or FTP server up and running then you can use the SSH connection.

You just need a SSH access to the device - it can be a local user or via TACACS+ or Radius. To upload a file to the Cisco device just a few steps are required:

1.

Activate SCP server on Cisco device

SWITCH# configure terminal
SWITCH(config)# ip scp server enable

2. Download PSCP and place it in the folder where the file is you would like to upload.
3. Open a CMD in the folder and use the following command to upload the file:

pscp.exe -scp -P 22 IOS-image.bin This email address is being protected from spambots. You need JavaScript enabled to view it..1.1:IOS-image.bin

4. Deactivate SCP server on Cisco device

SWITCH# configure terminal
SWITCH(config)# no ip scp server enable

Search

Newsletter