linux 下使用scp命令传输文件

scp -P 1234 /home/wakasann/test.txt [email protected]:/var/www/html/

使用 1234端口,将 test.txt文件传输到服务器的 /var/www/html 文件夹下

参考:

  1. 使用SSH命令行传输文件到远程服务器
  2. scp命令需要指定端口时要紧跟在scp后

猜你喜欢

转载自www.cnblogs.com/fsong/p/11260023.html