在通过堡垒机连接ssh/sftp传输文件的方法:sz指令

每次使用堡垒机都会遇到文件传输的问题,所以写下来记录一下,个人经验scp指令不好用,好像要写一个config,把堡垒机信息都弄好,但我试了很多次都没效。
在Windows系统下的本地cmd输入

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

报错 Connection timed out

解决方案

在ssh中输入sz xx
会弹出窗口让你选择保存地址
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_41950533/article/details/128292952