Yes I mean to pass that connection to another Go program. On Tuesday, December 5, 2017 at 5:52:19 AM UTC+3, Jonathan Pittman wrote: > > Elaborate on what you mean by "another place." Do you just need multiple > sessions within your own program or do you need to pass that connection to > another program (e.g. a proxy command or shared socket connection)? > > Within your program, once you have dialed an ssh connection and have an > *ssh.Client, you can create multiple new sessions. The ability to run > those sessions simultaneously may be limited by the MaxSessionLimit on the > host which limits the number of concurrent sessions per connection. You > will generally be safe if you run them one after the other. > > On Monday, December 4, 2017 at 2:56:19 PM UTC-5, Alex Hiltov wrote: >> >> Could somebody explain how can I reconnect (reuse) already opened ssh >> connection in Go. I'm using x/crypto/ssh ssh.Dial function to dial a >> connection . Then I can start a new session/ run command but I need to use >> this opened ss.dial connection from another place. How can i do this? >> >> Thanx >> Alex >> >
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.