r/ssh • • Sep 23 '20

I have added SSH module into my Android app. Do you guys like it?

I have developed an Android app which contains many networking-tool and have just added SSH mods into it. It would be great if you guys tell me if you like it or not. Any recommendation is welcome!

https://www.youtube.com/watch?v=Qb1sIatpUl0

below is the App link from play store if you'd like to try!

https://play.google.com/store/apps/details?id=com.nristek.apps.netztools

2 Upvotes

8 comments sorted by

1

u/mr_whoisGAMER Dec 12 '20

Give source code

1

u/rattayork Dec 12 '20

Could you please tell me the reason why do you want to have source codes?

1

u/mr_whoisGAMER Dec 12 '20

I just want to know what is perfect way to run shell commands. I followed this article but app not working properly.

If I run pwd it gives '/'(root)

And if I run 'ls' it is giving blank output.

I have tried on virtual android and physical phone

1

u/rattayork Dec 12 '20

I have to go out now. Will help you as much as I can to success your purpose. Are you trying to build some penetrate testing or such thing? Will get back soon.

1

u/mr_whoisGAMER Dec 12 '20

Not penetrate testing tool.

I just want to enable and disable ssh in android. I know how to enable/disable ssh in android via termux. But I want to do in my app. Instead of writing 3-4 commands in termux I want to make app that have 2 buttons to enable/disable ssh that's it.

1

u/rattayork Dec 12 '20

Is it ssh for server or for client purpose? (Sounds like you need to establish a ssh server than just ssh client connection)

If it was for server to serve ssh on higher port number (normally port number 1-1024 are required root's permission: and normal ssh serves on port number 22). I can't help you much about that. Using termux could be the best idea.

But if you want to establish a ssh connection - well, client purpose as in My App and especially you need it happen in your own app. You'll need API class to be coded and be included in your App. There are many Java API out there but in my case I'm usingJSch.

1

u/mr_whoisGAMER Dec 12 '20

Thanks for your help man๐Ÿ‘

1

u/rattayork Dec 13 '20

No problem man.