On 10/24/19 3:15 PM,
maurodelgadillo@gmail.com wrote:
Hi,
Hi,
Does anyone know how to connect to a specific server through a bastion
server (putty configuration saved) using Putty command line?
I can't tell you /how/ to do this because I've not done it in a LONG
time. But I do believe there is a way to do this.
I /think/ it involves using plink (?) as part of the solution. If
memory serves, sometimes it doesn't, you need to tell PuTTY to use an
external command to establish the connection to be used for the session.
I believe plink has the ability to connect to the bastion host and run
a command that connects to the SSH daemon behind the bastion.
I've already connected this way using the GUI like this https://superuser.com/questions/360351/can-i-tell-putty-to-connect-to-one-ssh-server-then-automatically-to-another/360356
That looks like it's saying what I've said above, but with a lot more
details and screenshots.
That makes me wonder if you are asking how to get PuTTY to do this from
the command line. Yes, I think you can, in a manner of speaking.
I think you need to specify all of the configuration parameters in the
GUI, save it as a profile, and then tell PuTTY to use said profile via
the command line.
Sorry, I don't remember the syntax to do this.
In Putty log there is the next command when I use GUI: Event Log:
Starting local proxy command: plink "bastionServer" -agent -nc 192.168.10.10:22
I've tried to do the same in command line, but the documentation
related to putty command line has not examples.
I don't know if you can completely specify all the parameters on the
command line. I think some of the must be saved in the connection
profile and then reference said connection profile on the command line.
--
Grant. . . .
unix || die
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)