SSH 和 SCP 指定端口

SCP 指定端口

scp -P ${port} xxx.tar.gz ${username}@${server ip}:/home/ubuntu

SSH 端口

ssh ubuntu@xxx -p ${port}
posted @ 2021-10-26 21:03  consolexinhun  阅读(99)  评论(0编辑  收藏  举报