Linux之间传送文件的SCP命令

Linux ssh scp 基本格式
2007-12-29 15:26

ssh:

ssh -l username -p port hostname or IP

如: ssh -l kevin_u -p 22 192.168.1.1

scp:

上传一个文件


scp -P port localfilepath useranme@hostmname or ip: remotefilepath

如:scp -P 22 aa.txt kevin_u@192.168.1.1:/tmp

下载一个文件

scp -P 22 username@hostname or ip:remotefilepath or ip:remotefilepath localfilepath

如:scp -P 22 kevin_u@192.168.1.1:/tmp/aa.txt./



发表评论

您的电子邮箱地址不会被公开。

28 − 24 =