How to transfer files via ssh/sftp via bastion host: sz command

Every time I use the bastion machine, I will encounter file transfer problems, so I wrote it down and recorded it. From personal experience, the scp command is not easy to use. It seems that I need to write a config to get all the bastion machine information, but I have tried many times to no avail. .
Local cmd input under Windows system

scp -r xx@xxx:/cm/home/xx/archive/retinaface/weights/mobilenet0.25_epoch_95.pth  D:/weight/

Error Connection timed out

solution

Enter sz xx in ssh and
a window will pop up allowing you to choose the save address.
Insert image description here

Guess you like

Origin blog.csdn.net/qq_41950533/article/details/128292952