I have an entry in my .ssh/config
file that looks like:
Host ip-172-16-*
ProxyCommand ssh jeff@jumpdev.example.org nc %h %p
User ubuntu
IdentityFile ~/.ssh/id_rsa_aws
StrictHostKeyChecking no
ForwardAgent yes
As most know this will allow me to run:
ssh ip-172-16-2-108.ec2.internal
and I drop onto the private server, as the default user for Ubuntu EC2 instances - ubuntu. I'm looking to take some specific actions on create.
Ultimately what i am looking for is the same functionality with either scala-ssh
, jassh
or directly from jsch
I'm not asking for anyone to suggest a library, just how/if this functionality is supported. With jassh
, i've attempted with the Proxy options with no luck.
Ultimately i could shell out directly to ssh, but even with ammonite
, it won't load the config if using %('ssh, Symbol("ip-172-16-2-108.ec2.internal")
. I thought that would use the base ssh, which would load the config and match, like bare ssh. I could also set up my config not to use nc
This does sound like i'm asking for a library, so if it gets closed, so be it, but i've tried 4 directly and none, seem to completely support .ssh/config
TIA, Jeff