Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • 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:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Apache mina sshd server unable to accept shell commands

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a program via JSch to upload files to a Linux host via SFTP. After uploading, I will use ChannelExec from JSch to pass 'md5sum' command to the destination Linux host to get back the checksum of the file I just uploaded so that I can verify the integrity.

Now for some reason the Linux Host will be replaced by containers. For this, I created a SSHD program by Apache mina running on a Pod to perform the same function of SFTP. Now I can upload files to this SSHD program, but I am not able to send the 'md5sum' command now.

I tried to research a bit and it seems like I need to implement a commandFactory to take care of this. However I could not find any example or hint how exactly I can implement it. May I know if anyone has clue on this?

Thank you very much.

 
Check your pockets for water buffalo. You might need to use this tiny ad until locate a water buffalo:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!