cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3771
Views
0
Helpful
1
Replies

copy from an SFTP server on a different port than 22

DeanMoore
Level 1
Level 1

Seems like such a simple thing, can I copy a tar from a SFTP server running ssh on a different port (due to port forward etc)?

 

I've tried the usual, removed sensitive data

copy sftp://user:pass@serverip:port/file.tar flash:
% Connection timed out; remote host not responding

%Error opening sftp://*:*@serverip:port/file.tar (Undefined error)
1 Reply 1

johnd2310
Level 8
Level 8

Hi,

What device are you trying to copy the file to? Cisco routers/switch use scp. If your sftp/scp server has access to the switch/router, you could copy from the server to the cisco  device by enabling scp server on the cisco device.

e.g.

ip scp server enable

 

scp /home/user/cisco-ios.bin  device-user@cisco-switch/cisco-ios.bin

 

Thanks

John

**Please rate posts you find helpful**

Review Cisco Networking for a $25 gift card