I need to move files to destination server(s) to which we have to pass-through 2 jump servers. Currently this is how my alias are setup
alias tst = 'ssh -A -t xjmp01 ssh -A -t xjmp02 ssh -A -t qat1' alias qat = 'ssh -A -t xjmp01 ssh -A -t xjmp02 ssh -A -t qat2'
if I do 'tst' in Putty I get connected to qat1
Question: is there any way I can use this setup to move files as well - if yes, how ?
I have tried using the information given here: scp files via intermediate host
but those don't work with alias setup that I have.