首页 > 技术文章 > scp命令指定远程服务器端口

liujiaq 原文

在需要指定端口时要使用-P(大写的P),而且要紧跟在scp之后:scp -P 8888 upload_file username@server(正确)

推荐阅读