I want to run scripts on an Ubuntu PC from my Android phone just with a tap, no passwords or other stuff.
Things I did so far: I managed to connect via SSH to the PC, but I cannot configure a public-key authentication (I'm using CM9, for what it matters). I could create a rsa key on my phone (and stored it on the server) but it's like it's not using it when connecting, so I tried using the "ssh -i" flag but then I get an error that the string is too long. ConnectBot rsa authentication works well, but I cannot use it to run scripts. I also tried installing dropbear but I stopped as soon as I needed to compile stuff, because I could not find a complete guide, or they are mostly describing the opposite process (install an ssh server on Android). To run the scripts I use "Script Manager - SManager" that allows the creation of widgets, but so far it's always asking for the password.
Can you suggest a proper way to use pub key or any alternative solution?
Thanks!
P.S. I know this has already been partly discussed here: Where to add SSH keys to allow connections to remote server on Android? But it does not work and I cannot comment that question.
sftp://user:pass@machine:port/path/to/file
. But keep in mind that this way the password is visible. And no guarantees that it works.