Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

java and ssh/sftp

Thread view: 
Luke - 12 Nov 2006 16:44 GMT
Hello, I'm hoping someone can give me a suggestion on solving a
programming problem.  I have a java program which generates new versions
of content for a website.  After the new content files have been created
we need to use sftp to transfer the files to the remote site, and then
use ssh to log on and change some symbolic links to point to the new
content.  Is there anyway to automate the process and have java
interface with the sftp & ssh processes?  This application runs on a
windows system.
Alex Hunsley - 12 Nov 2006 17:11 GMT
> Hello, I'm hoping someone can give me a suggestion on solving a
> programming problem.  I have a java program which generates new versions
[quoted text clipped - 4 lines]
> interface with the sftp & ssh processes?  This application runs on a
> windows system.

My first suggestion is to look at Ant. Ant has a SCP (secure copy)
optional target available, amongst things; it may have other useful
targets made for it for such remote tasks....
jscape@gmail.com - 13 Nov 2006 13:33 GMT
You may want to look at the following.  Both contain API for automating
ssh/sftp/ftp processes.

http://www.jscape.com/secureinetfactory/

http://www.jscape.com/sftp/

> Hello, I'm hoping someone can give me a suggestion on solving a
> programming problem.  I have a java program which generates new versions
[quoted text clipped - 4 lines]
> interface with the sftp & ssh processes?  This application runs on a
> windows system.
Daniel Pitts - 13 Nov 2006 17:39 GMT
> Hello, I'm hoping someone can give me a suggestion on solving a
> programming problem.  I have a java program which generates new versions
[quoted text clipped - 4 lines]
> interface with the sftp & ssh processes?  This application runs on a
> windows system.

Among the other suggestions you have been given, you can download a
command line ssh client (I suggest cygwin or putty on windows, Linux
should come with ones "built-in").

You can then use Runtime.exec or System.exec to run and communicate
with native programs.  Hope this helps.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.