首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > 其他操作系统 > 在SSH环境下如何上传下载文件
【标  题】:在SSH环境下如何上传下载文件
【关键字】:SSH
【来  源】:http://www.cublog.cn/u/1190/showart.php?id=148262

在SSH环境下如何上传下载文件

在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/目录下

root@test[/tmp]#scp /tmp/secs_sun mon@192.168.0.111:/tmp/

Password:
secs_sun             100% |*********************************************************************************| 11007 KB    00:01   
七夕情人节祝福短信:【上一篇】
Solaris高级系统管理员指南(9):文件存取问题分析:【下一篇】
【相关文章】
  • SSH+SQUID HOWTO
  • OpenSSH for Windows: Quick Start Guide
  • 用openssh构建安全网络
  • Linux下由论坛到SSH的入侵
  • ssh2学习笔记 --《ssh权威指南》
  • SSH(Spring + Struts + Hibernate)小试 之一
  • SSH远程登陆中文乱码解决方法及修改默认语言
  • ssh 超时问题
  • Embedded-oriented SSL, SSH suite launches
  • 配置PIX SSH
  • 【随机文章】
  • 从GB2312到Unicode的转换实现经历及如何实现Plone的GB2312编码
  • SMI-S期待更多
  • 恭贺新春—QQ 2005贺岁版闪亮登场
  • 在内存中修改数据的网游外挂
  • WebSphere MQ 学习笔记(4) Recovery&Problem Determine
  • 用c#写的贪吃蛇游戏,简简单单
  • Unilan®U6六类系列配线架
  • 双击硬盘盘符打不开文件的处理方法 (转载)
  • portupgrade命令参数
  • 磁盘配额实验[原创]
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.