I have 5 hosts - A, B, C, D and E. A and B are windows hosts. C, D and E are Linux machines running ssh server on port 22.
I've copied plink.exe (putty command line backend client) in host B. When I run the command - plink user@host -pw password "command to execute" in a command prompt in B, it connects, executes the command and returns the output to the screen.
I'd like to start a ssh session to C, by executing plink.exe on B from a remote host A and keep it active until A closes the connection. Is this possible? Or Am I dumb that this cannot be done...
What i trying to do here is control how the connections are being made to linus ssh hosts. Instead of having multiple plink sessions in different machines, i'd like to have a single copy of plink in host B. Using a custom developed client, i'll direct the commands to B, where the plink session starts, executes the commands as long as the client is connected from the remote host and closes the session once the client is closed.
Is this possible? Please advise. Thanks.