Hi, Simon.
Thanks for the pointers. I see how I am supposed to proceed.
I have now installed the development snapshot
SSH-2.0-PuTTY_Snapshot_2016_06_03.7b9ad09
and tried it out. OS is Windows 7 Professional with updates installed to today's date.
The command line version works with:
C:\Users\elwynd\Documents\ssh>plink
destination.example.com -i destination_key.ppk -l elwynd -A -v -ssh -proxycmd "plink
bastion.example.com -i bastion_key.ppk -l elwynd -A -v -nc
destination.example.com:22"
Or, taking out the verbose progress messages and unnnecessary bits:
C:\Users\elwynd\Documents\ssh>plink
destination.example.com -i destination_key.ppk -A -proxycmd "plink
bastion.example.com -i bastion_key.ppk -l elwynd -nc
destination.example.com:22"
This latter version will ask you to type in the username for the destination but the username has to be in the options in the proxycmd string. The -A for agent forwarding is necessary in the outer plink command.
Question: Would it be possible to see the progress messages from the proxycmd? This might be useful in some cases.
In the process of working out what I should be doing, I think I may have hit on a curiosity and a bug (or possibly two bugs):
- Pure plink command line attempt missing the -nc in the proxycmd string:
C:\Users\elwynd\Documents\ssh>plink
destination.example.com -l elwynd -i destination_key.ppk -v -A -proxycmd "plink
bastion.example.com -v -i bastion_key.ppk -l elwynd -A"
Starting local proxy command: plink
bastion.example.com -v -i bastion_key.ppk -l elwynd -A
We claim version: SSH-2.0-PuTTY_Snapshot_2016_06_03.7b9ad09
Server version: SSH-2.0-PuTTY_Snapshot_2016_06_03.7b9ad09
Using SSH protocol version 2
Incoming packet was garbled on decryption
FATAL ERROR: Incoming packet was garbled on decryption
- Using a PuTTY session definitly seems to have hit a bug:
C:\Users\elwynd\Documents\ssh>plink
destination.example.com -l elwynd -i destination_key.ppk -v -A -agent -proxycmd "plink -load bastion"
Starting local proxy command: plink -load bastion
We claim version: SSH-2.0-PuTTY_Snapshot_2016_06_03.7b9ad09
Server unexpectedly closed network connection
FATAL ERROR: Server unexpectedly closed network connection
[Popped up Windows Application error message box: Instruction referenced memory at address 0. Ooops!]
C:\Users\elwynd\Documents\ssh>
Note: I got exactly the same crash when I forgot to enclose the -proxycmd string in quotes.
I noticed that I was unformed that:
We believe remote version has SSH-2 channel request bug
I doubt if this is a factor but I guess it might be.
Thanks for the advice.
Regards,
Elwyn