Export / sync connections and commands

Advertisement

gbotica
Joined:
Posts:
4
Location:
New Zealand

Export / sync connections and commands

Hi,

Firstly, I love WinSCP and don't know what I'd do without it -- thank you! (I have donated a while back ...)

Anyway, I manage a number of servers from both my desktop and laptop computers and when I add or edit server configs I use the Export Configuration to save the winscp.ini to DropBox, then import on the other machine. However, this has a couple of drawbacks.

1. I use a different SSH private key to connect from my laptop vs desktop, and after I import I have to edit the site configs to change to the correct key, which is a bit of a pain. It would be great to be able to import connection settings and retain the current SSH key setting if the site already exists. Is this be possible somehow?

2. I use the WinSCP Commands quite a lot for common tasks and this is really useful - it would be great to be able to just export the commands without having to export the entire configuration - is there anyway to do this?

Thanks

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,453
Location:
Prague, Czechia

Re: Export / sync connections and commands

gbotica wrote:

1. I use a different SSH private key to connect from my laptop vs desktop, and after I import I have to edit the site configs to change to the correct key, which is a bit of a pain. It would be great to be able to import connection settings and retain the current SSH key setting if the site already exists. Is this be possible somehow?

- use Pageant instead of hard-coding the private key
- or use the same path to the private key on both machines
- or use /batchsettings switch to mass-update all/selected sites
https://winscp.net/eng/docs/commandline#batchsettings

2. I use the WinSCP Commands quite a lot for common tasks and this is really useful - it would be great to be able to just export the commands without having to export the entire configuration - is there anyway to do this?
Since 5.8.2 you can set up the custom commands using "extension" file:
https://winscp.net/eng/docs/extension

Reply with quote

Advertisement

You can post new topics in this forum