scp 安全文件传输
scp 基于 SSH 的安全文件拷贝命令,用于在主机间传输文件。
示例:
# 上传本地文件到远程
scp file.txt user@host:/remote/path/
# 下载远程文件到本地
scp user@host:/remote/file.txt /local/
# 递归传输目录
scp -r /local/dir user@host:/remote/替代:建议使用 rsync 或 sftp 进行更复杂的传输。
欢迎来到程序员中文网!
scp 基于 SSH 的安全文件拷贝命令,用于在主机间传输文件。
示例:
# 上传本地文件到远程
scp file.txt user@host:/remote/path/
# 下载远程文件到本地
scp user@host:/remote/file.txt /local/
# 递归传输目录
scp -r /local/dir user@host:/remote/替代:建议使用 rsync 或 sftp 进行更复杂的传输。