Below command is working, I am able to download file from jumphost to my current directory in Windows machine using .pub file
scp -r -i user_202201281017.pub user@jumphost_ip_address:/home/user/check-job-status.sh .
As of now I am copying file to jumphost server using sftp, then doing scp to my Windows machine. I would like to bypass jumphost and want to use 2nd hop to transfer file to Windows machine like below command
scp -r -i user_202201281017.pub user@jumphost_ip_address,user@file_present_at_original_server:/home/user/check-job-status.sh .
Error:
ssh: connect to host file_present_at_original_server port 22: Connection timed out