gpt-3.5-turbo-0125· OpenAI
WildChat-4.8M (AI2)
scp 用法
- User
scp 用法
- Assistant
SCP(Secure Copy Protocol)是一个基于 SSH 协议的文件传输工具,用于通过加密的方式在不同系统之间进行文件传输。它的用法如下:
- 将本地文件复制到远程主机:
scp /path/to/local/file username@remote_host:/path/to/remote/directory- 从远程主机复制文件到本地:
scp username@remote_host:/path/to/remote/file /path/to/local/directory- 通过另一个端口传输文件:
scp -P port /path/to/local/file username@remote_host:/path/to/remote/directory- 递归复制整个目录:
scp -r /path/to/local/directory username@remote_host:/path/to/remote/directory- 使用密钥对进行认证:
scp -i /path/to/private_key /path/to/local/file username@remote_host:/path/to/remote/directory以上是一些常用的 SCP 使用方法,通过使用不同的参数可以实现更多的功能。