This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

ssh requirements help  RSS feed

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

How you doing i need help regarding using ssh, sftp.

I have tried using sshxcute open source project, ran into issues not sure if other open source projects works the same way.

Below is My requirement : I need to these task on linux box from windows)

1. Navigating directories on remote box
2. Executing commands
3. uploading files to remote box
5. download files from remote box
6. wait the process until it completes execution of shell script and pull the log files

Issues i have faced with sshxcute are



Is there any interactive ssh tools like how we do in putty. is there any industry standard APIs are existed to use.

Appreciated all your inputs
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you facing a problem with this code? you should check the Result objects for success/failure and act on those accordingly.

One thing I noticed is that line 5 seems to be missing a leading slash - just a copy/paste error?

There is no standard API for this. JSch is a common library to use, and I see this library uses JSch underneath.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!