In order to access a particular linux machine, I must first ssh to a provided gateway server, however I never receive a command line on the gateway server. Immediately on login to the gateway I am prompted for the name of the desired destination machine behind the gateway (there are several) and if I provide a valid machine name I'm then prompted for my username for the requested machine behind the gateway and then I'm directly dumped into a command line on the requested machine behind the gateway.
Is it possible to set up passwordless ssh login in such a scenario from my client machine to the destination machine behind the gateway?
What about cloning repositories via ssh to the the destination machine behind the gateway? I can scp directly to a filesystem mounted on the destination machine via the gateway machine (
gw.foobar.com) like so:
scp foo.txt email@example.com:/home/myusername
However if I try
hg clone myrepository ssh://firstname.lastname@example.org//home/myusername
I get prompted for my password for the gateway and then:
sshgate: Invalid command (Session type) 'HG'
abort: could not create remote repo!