在UNIX 的SSH环境下通常我们会关闭FTP,这时如果需要向主机上传文件则需要使用sftp, scp,vcp, pscp命令.
=======================================================
可以使用Windows下SecureCRT自己带的vcp命令
C:\Program Files\SecureCRT 3.0>vcp ?
usage: vcp [options] [[user@]host[#port]:]file [[user@]host[#port]:]file
Options:
-c cipher specify cipher
-i file specify identity file to use for public key authentication
-m mac specify mac
-p passphrase specify passphrase for given identity file
-pw password specify password
-preserve preserve file attributes during copy
-q do not display progress messages
-r recurse directory structure
-socks4 server[:port]
specify sock version 4 server to use during connection
-socks5 server[:port]
specify sock version 5 server to use during connection
-v display verbose connection debug information
-z n specify compression level
VCP version 3.4.2.
SSH2Core version 2.0.0.9.
C:\Program Files\SecureCRT 3.0>vcp c:\secs_sun
mon@210.239.63.211:/tmp+----------------------------- Warning ----------------------------------+
| This System is strictly restricted to China . |
| Any illegal access shall be punished with a related-law. |
| This session is monitored by Administrator. |
+------------------------------------------------------------------------+
Password:
Copying: c:\secs_sun
C:\Program Files\SecureCRT 3.0>
在UNIX主机上面如果安装了SSH则可以使用SSH自己带的sftp或者scp命令上传或者下载文件.
scp [-pqrvC46] [-S program] [-P port] [-c cipher] [-i
identity_file] [-o option] [ [user1@]host1:]file1 [
[user2@]host2:]file2 [...]
eg:将本地主机的/tmp/secs_sun使用mon用户上传到192.168.0.111主机/tmp/目录下
Password:
secs_sun 100% |*********************************************************************************| 11007 KB 00:01