[Q] What's a good ssh server to run on the HOX+? - HTC One X+

Any recommendations for a good ssh server to run on the phone? It's easier to me to run a shell, vi, scp via something like putty that works well as a real terminal than 'adb shell' via the command prompt where vi is all messed up, etc. I tried Android Commander as an alternative but it's too buggy at least against our phone.
So what is *the* ssh server to run on the phone with the option to keep it disabled most of the time, except when I need to use it?

Related

[Q] SSH deamon

I would like to log into the phone from the desktop. I had hoped that it would be able to start an ssh or telnet deamon on the phone?
Yes this is possible via dropbear.
I had it installed to autostart when phone booted until recently
I'ts kind of useless though since it's a lot laggier than adb shell so I got rid of it.

[Q] How to type commands on gTab?

I'm having issues connecting the Microsoft Bluetooth keyboard to my gTab, and I've been trying to use Bluetooth Keyboard Easy Connect, but that can't seem to install Bluez Utils, because I can't find them anywhere on the device. It looks like the device is mounted R/O and I have no idea how to mount it otherwise.
But back to my point, I've seen tutorials for doing this manually, and all involve typing commands at a command line, some using adb. Is there a comprehensive tutorial for typing commands in these examples that people give?
Also, for what it's worth, I have the dev kit installed, and I try doing adb, but it tells me device not found, so apparently I'm not connecting it correctly and I can't find any instructions on how to do such a thing.
I'm not able to find anything on this search-wise (well, there is one post in XPERIA X8 General, but that involved removing a battery, which you can't do on the gTab).
Any help would be appreciated!
There are several ways to go. If you use Windows you need drivers and if you use Linux you'll need to make an entry in your udev rules so the tablet is recognized as a device. If you search the overall gtab forums for "adb windows" or "adb linux" you should be ok there.
So ADB is one way to get a shell. You can also download something from the market like Android Terminal or Better Terminal. Of course, those are easier to use if you have an external keyboard ;-) You can get Full Keyboard or other keyboards that have all the exotic keys.
The 3rd way to do it is to run sshdroid or another ssh server and then use ssh or putty to connect to your device remotely.
Any one of these methods will give you a shell prompt either on the screen or back at your PC.

How to get shell/command line access

So, what is the best way/app to get a command prompt on my tab? I'd like to be able to enter linux command in the shell directly.
Also, what is the best say/app to install a ssh server on the device, so I can enter these same commands trought SSH with putty.
Thanks
I personally turn to Better Terminal Emulator Pro and for remote SSH access to my pad I use SSHDroidPro, both costs a little but are well worth the money

Best remote shell alternative to adb shell?

What's a good approach for getting a remote shell from Windows? adb shell just doesn't cut it, I tried it from the Win command prompt and from cygwin's mintty and there are all sorts of terminal problems, cursor keys not working, escape sequences not working, vi is a mess, etc.
So what's the proper way to set up a remote shell so that you get close to the Linux experience while connecting from Windows? E.g. sshd and connect via putty, busybox installed, etc. Any recommendations please before I go and try a bunch of things and make a mess? Thanks!
sirxdroid said:
What's a good approach for getting a remote shell from Windows? adb shell just doesn't cut it, I tried it from the Win command prompt and from cygwin's mintty and there are all sorts of terminal problems, cursor keys not working, escape sequences not working, vi is a mess, etc.
So what's the proper way to set up a remote shell so that you get close to the Linux experience while connecting from Windows? E.g. sshd and connect via putty, busybox installed, etc. Any recommendations please before I go and try a bunch of things and make a mess? Thanks!
Click to expand...
Click to collapse
SSH is a good alternative. You can then connect via PUTTY from your Windos machine. There's a small ssh server for embedded system called "dropbear", alto not fully functional (no scp/sftp support), it's easier to install than openssh. If you don't want to install it in the Android OS native, you can always download an app including it, there's a few of them.
Myself I'm using openssh, using my fully GNU Debian environment (see my signature). This solution also enables me to use X-windows for remote access to my Android. But I guess this is overkill for you. But still, very cool.
kuisma said:
SSH is a good alternative. You can then connect via PUTTY from your Windos machine. There's a small ssh server for embedded system called "dropbear", alto not fully functional (no scp/sftp support), it's easier to install than openssh. If you don't want to install it in the Android OS native, you can always download an app including it, there's a few of them.
Myself I'm using openssh, using my fully GNU Debian environment (see my signature). This solution also enables me to use X-windows for remote access to my Android. But I guess this is overkill for you. But still, very cool.
Click to expand...
Click to collapse
Thanks! Your link Run a complete GNU/Linux distribution on your Android is pretty cool!
I tried DropBear SSH Server II and SSHDroid and they seem to work well enough for what I need. Next step is to get sftp working which apparently it is possible with DropBear SSH Server II with a bit of manual work.

[Q] Commands via SSH

Lately i got ssh running on my tablet and was not able to use commands that worked over adb.
The commands included "am boradcast" and "input tap"
Is this somehow planned or a bug.
I am using Cyanogenmod Nightly with OpenSSH
Tyrado said:
Lately i got ssh running on my tablet and was not able to use commands that worked over adb.
The commands included "am boradcast" and "input tap"
Is this somehow planned or a bug.
I am using Cyanogenmod Nightly with OpenSSH
Click to expand...
Click to collapse
Not sure and i'm not expirienced with SSH, but isn't there something else needed for ssh commands?
Did some research for you and thei're talking about an opensshd daemon, maybe this could help you further... (Trust me )
http://linux.about.com/od/commands/l/blcmdl8_sshd.htm
The ssh daemon is the peace of code running on my device, listening for connections. This is all working so far. I am able to connect but issuing the commands doesn't produce any output or effect

Categories

Resources