Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ssh requirements help

 
Sireesh Ganagam
Ranch Hand
Posts: 41
  • 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
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • 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