Hi,
WinSCP is a client, at least they claim it to be such on their website - "WinSCP is an open source free
SFTP client, FTP client, WebDAV client, S3 client and SCP client for Windows." At the same time the "copy" command needs SFTP server on another side, in fact 'copy config ... sftp' is an SFTP client itself. It is the same story as with FTP/TFTP, a typical client-server architecture where clients talk to servers, but never to another clients.
Since you use Windows here are a couple of options for free SFTP servers:
- OpenSSH for Windows (since you know and prefer WinSCP they have a good guide about it -
https://winscp.net/eng/docs/guide_windows_openssh_server )
- Solarwinds SCP/SFTP server -
https://www.solarwinds.com/free-tools/free-sftp-serverAlso there are a plenty of commercial products, I can't recommend any, but Google will gladly do so :-)
------------------------------
Ivan Bondar
------------------------------
Original Message:
Sent: Jun 28, 2022 03:43 PM
From: Ronald Ratzlaff
Subject: Copy Running Config via SFTP
Greetings,
I am wanting to backup our switch config files via SFTP. I have tried and succeeded in the past using FTP/TFTP but my supervisor is keen on using SFTP. We're mostly operating ArubaOS switch devices, with a few ArubaOS CX taking their place now. As for the SFTP server I'd prefer using WinSCP.
I have succeeded accessing config files from the WinSCP interface, but when I try to copy them from the switch cli I get 'Request failed'
switch# copy config [config-name] sftp [ip-address] [dest-filename] detail
I thought the best would be to run a recurring job on the switches to copy their config to the server. I'm open to automating things from the WinSCP end too. Any pointers appreciated!