Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

gbotica

Re: Export / sync connections and commands

martin wrote:


- 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


Excellent suggestions! Thanks very much.
martin

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
gbotica

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