利用Ganymed SSH-2模拟SSH操作
来源:互联网 发布:淘宝无线端怎么装修 编辑:程序博客网 时间:2024/04/29 23:20
利用Ganymed SSH-2模拟SSH操作
今天在看SFTP资料时,无意中看到了Ganymed SSH-2,写了个简单demo,通过,感觉挺好用,特记录如之。
官方地址:http://www.cleondris.ch/opensource/ssh2/
简介:
Ganymed SSH-2 for Java is a library which implements the SSH-2 protocol in pure Java (tested on J2SE 1.4.2 and 5.0). It allows one to connect to SSH servers from within Java programs. It supports SSH sessions (remote command execution and shell access), local and remote port forwarding, local stream forwarding, X11 forwarding, SCP and SFTP. There are no dependencies on any JCE provider, as all crypto functionality is included.
程序:
运行结果:
connect ok
Authentication ok
Here is some information about the remote host:
Linux localhost.localdomain 2.6.22 #1 SMP Wed Aug 13 11:24:59 CST 2008 i686 i686 i386 GNU/Linux
ExitCode: 0
Authentication ok
Here is some information about the remote host:
Linux localhost.localdomain 2.6.22 #1 SMP Wed Aug 13 11:24:59 CST 2008 i686 i686 i386 GNU/Linux
ExitCode: 0
- 利用Ganymed SSH-2模拟SSH操作
- 利用Ganymed SSH-2模拟SSH操作
- Ganymed SSH-2
- ganymed-ssh-2
- Ganymed SSH-2 for Java
- Ganymed SSH-2 for Java
- Ganymed SSH-2 for Java 示例
- Ganymed SSH-2 for Java系列1之 ganymed-ssh2介绍
- Ganymed SSH-2 for Java系列1之 ganymed-ssh2介绍
- Ganymed SSH-2 for Java系列1之 ganymed-ssh2介绍
- Ganymed SSH-2 for Java系列8之SFTPv3Client说明
- Ganymed SSH-2 for Java系列9之scpPut
- Ganymed SSH-2 for Java系列10之scpGet
- Ganymed SSH-2 for Java系列11之SCPClient
- 应用Ganymed SSH-2 for Java判断服务器状态
- Ganymed SSH-2 for Java系列8之SFTPv3Client说明
- Ganymed SSH-2 for Java系列9之scpPut
- Ganymed SSH-2 for Java系列10之scpGet
- 歪歪的blog开通了
- C#读取被进程占用的文件
- 啊
- php调用存储过程返回结果集,解决can't return a result set in the gi...
- ln 符号连接的层数过多
- 利用Ganymed SSH-2模拟SSH操作
- DNS 基础知识
- char,nchar,varchar,nvarchar,text,ntext之间的区别
- WinCE 虚拟内存机制!
- 驱动程序 没在控制台输出原因 printk及控制台的日志级别
- C#读取Rss功能函数
- Ubuntu下的C++语言编译环境的建立
- 开发心的
- 高负载、高并发网站架构知识汇总-大流量网站架构的几点认识