Fork me on GitHub
#cider
<
2021-11-01
>
anonimitoraf03:11:43

Hi guys • We have machines dev1, dev2, devN running nREPL on the same port (7777) • We sometimes need to connect to multiple machines and preferably not have to kill CIDER's nREPL connection before connecting to another machine • Would it make sense to change nrepl--ssh-tunnel-connect such that it used a random unused local port (i.e. not just forward remote 7777 -> local 7777)? I don't mind implementing this myself and making a PR, just wanted to sanity-check that the behaviour proposal makes sense

dpsutton04:11:03

That sounds reasonable. Although writing up an issue and and posting a potential solution would be a good idea. Off the top of my head I don’t see why you don’t just connect to to the nrepl port on that machine directly

anonimitoraf05:11:19

Right, yea I'll do that. I can't connect directly because only way is through a bastion host

dpsutton05:11:51

ah i'm surprised it works through cider. i figured you'd have to open those tunnels manually with the correct identify file

anonimitoraf06:11:48

I think it's because if you don't specify an identity file SSH commands default to id_rsa (which I use)