Mobile access to your server is not only cool, it comes in handy in a lot of situations. With SSH access from your mobile phone, you can check your emails, logs, box status, irssi, torrents, execute updates, reboot and lots of other things, all on the go. In this short tutorial I will explain how to access and administer a Ubuntu (and any Debian based) server with a not so recent Mobile phone. For this to work, you will need a java supporting mobile device with GPRS enabled (Midp). You will have to install a .jar file of MidpSSH on the device (which you will have to download to your mobile) and install additional ncurses terminal definitions on the server.

1. Download and install MidpSSH
Depending on you download limit for your mobile internet account, you can choose a different approach to download the jar file. The easiest is to download it through wap, alternatively you can download it to your pc and upload it to your mobile using Bluetooth or usb.
**approach 1- Using wap:**
Take your java and GPRS enabled mobile and browse to http://xk72.com/wap
Select the latest Stable release (v1.6.0) and select your preferred version on the next page for the download and installation to start. Best place to install it is in the applications directory.
**approach 2 - download to your pc**
download full_build_v1.6.0_stable
and upload it to you mobile and install it in you application directory.
2. Configure MidpSSH - Create a session
Once the installation is finished, go to the applications directory on the mobile. Select Sessions, select more to create a new session. Fill in the required fields and select create.
3. Install additional ncurses definitions on the server
At this point you can already connect and do basic operations. But a lot of terminal applications use ncursus for the interface. If you want to use such an app, you will get the following error:
error unkown terminal type vt320
This is why an additional ncurses package is needed:
sudo apt-get install ncurses-term
In the Settings menu you can also select the screen to be displayed in landscape

To make it easy using MidpSSH, the developper also include the possibility to create macros or to use keyboard keys like crtl, alt, esc etc. This is among others what makes this a killer app in all its simplicity.
Applications I found useable are top (htop), mutt, mc, , irssi, rtorrent, vi and nano. Although it's a little ridicules to use a text editor with a mobile.


| Attachment | Size |
|---|---|
| midpssh-full.jar | 118.32 KB |
Comments
I have installed midpssh and am using it to connect to an openssh server. But i have a problem with it when connecting to a dropbear ssh server. I think the problem stems from midpssh and dropbear ssh not using the same encryption algorithms.
My question to you is, do you know what encryption algorithm midpssh is using, and do you know how i can set dropbear ssh to accept that algo?
I just stumbled upon this app and use it to manage rtorrent from my blackberry. The only problem I'm running into is logging into a rtorrent session that's already running. I'm not even sure if there's even a way to do that. I also haven't figured out how to use the macros yet.
@tom: I have no idea. I did a quick search but didn't find anything usefull. I upgraded my phone and use token2shell mobile now. Sorry
@switchrodeo720: logging into a running rtorrent session is possible with the use of GNU Screen (this is how I do it). If you don't know screen, here is a tutorial:. Basically, you first start a screen session (ex. from your desktop) in which you start rtorrent. When you leave your desktop you detach screen (ctrl+a , d). This way the screen session with rtorrent in it will be backgrounded. From your phone, you ssh into the shell, and reattach screen (screen -x) and rtorrent will come to the foreground of your control. When you're finished, you detach screen from your phone and reattach it from your desktop etc.
You don't have to detach, but it will avoid problems with the difference in size between phone and desktop display/monitor and/or terminal size. Another problem that can arise, is accidently starting more than 1 screen session, but the error you'll get will help you fix that.
another link
You can also access your ssh server with a webbrowser by using a service like webssh
Post new comment