Add the support of local scripts#31
Conversation
|
I'm terribly sorry for the late response... This PR must have slipped my attention. Wouldn't it be better to allow a custom SSH config to be passed? That seems like a more direct approach to solving your problem. |
|
Hi @mjwwit, Thank you for the reply. Could you explain more on how to pass a custom SSH config? |
|
There currently isn't a way to pass custom config, but the ability to do this would in my opinion be a better solution to your problem than your local script. |
Thanks for the explanation. The custom config way is to put a file in the target server right? it seems difficult for my case, because I'm using docker for Drone CI, so I cannot put a custom config file into the target server. |
Add the support of local scripts, that could be run on local server before rsync to remote server.
This is required by my project because when target server got lower version of openSSH, and it's impossible to upgrade the target server, so adopt a local script feature to run below before sync files.
echo -e "Host xxx.xxx.xxx.xxx\n KexAlgorithms +diffie-hellman-group1-sha1" >> ~/.ssh/config