danmx / sigil

AWS SSM Session manager client
Apache License 2.0
69 stars 13 forks source link

Support multiplexing sessions with ControlPersist SSH options #175

Open klauern opened 4 years ago

klauern commented 4 years ago

We have some users that are using sigil with the ProxyCommand through tools like Ansible and Chef Knife. We're getting some ThrottlingExceptions as sessions and commands are exiting and entering too quickly.

CleanShot 2020-11-17 at 11 00 31@2x

In looking at this, what would make it possible to implement support for reusing SSH sessions? I would like our users to add this to their ~/.ssh/config but this doesn't appear to be supported:

Host *
ControlMaster auto
ControlPath ~/.ssh/sockets/%r@%h-%p
ControlPersist 600

https://puppet.com/blog/speed-up-ssh-by-reusing-connections/

CleanShot 2020-11-17 at 11 21 26@2x

danmx commented 4 years ago

Thanks for reporting. I'll take a look at it during the weekend.

klauern commented 3 years ago

Hello @danmx,

Did you have a chance this weekend to look at this?

danmx commented 3 years ago

Unfortunately only briefly, I need to schedule some free time for it.

danmx commented 3 years ago

@klauern from Thursday I'll be on holidays so I'll finally find some time to work on some of the issues

danieliziourov-form3 commented 3 years ago

potentially related: https://gist.github.com/netj/d9006a823163d7662d8ff105c9a49e0e