Post

SCP 备忘

https://pasteme.cn/4452

1
2
3
4
5
6
7
scp -P <port> <local_file_path> <username>@<remote>:<remote_file_path> # 本地向远端拷贝
scp -P <port> <username>@<remote>:<remote_file_path> <local_file_path> # 远端向本地
## <port>                端口号,默认 22
## <local_file_path>     本地文件路径
## <username>            远端用户名
## <remote>              远端地址,IP 或 域名。
## <remote_file_path>    远端文件路径,最好是绝对路径
This post is licensed under CC BY 4.0 by the author.