Suppose that you are away from your home or work, and some issue happens suddenly with your server, or you want to test something on your server right now. You can use your blackberry device to reach your server from anywhere.
SSH is the most common remote administration protocol. That is used to reach the command prompt, and also some graphic applications in Linux exporting X. MidpSSH enable you to use the linux bash / command prompt from your mobile device. This program have SSHv1 and SSHv2 options, and also have SSH-DSS public key authentication.
From SSH we can do anything in Linux: you can restart services, develop applications, reboot the computer, install new programs, change configurations, whatever you want.
My configuration:
Telephone model: Blackberry Smartphone 8310 Linux version: Fedora 11 SSH version: 2 MidpSSH version: 1.7.3 Telephony provider: Movistar Venezuela |
First, you need to install the barry applications, this application enable you to load/upload bb applications into your blackberry from linux. This is driven by bjavaloader…
On Fedora Linux the install is easy, we need to write as root: “yum -y install barry”:
# yum -y install barry Loaded plugins: downloadonly, fastestmirror, presto Loading mirror speeds from cached hostfile ^C^Cupdates/metalink | 13 kB 00:00 ^C Exiting on user cancel Dependencies Resolved ========================================================== Transaction Summary Total download size: 678 k Installed: Dependency Installed: Complete! |
Next, we must download the SSH client: midpssh 1.7.3 for blackberry, OS 4.x
# wget http://www.xk72.com/midpssh/v1.7.3/midpssh2.cod |
Connect the cellphone to the computer, remember unlock the password, and setup the data mode, not the massive storage mode. and next, as root, execute this command (if handheld password is set):
# bjavaloader -Pyourpass load midpssh2.cod |
handheld password not set command:
# bjavaloader load midpssh2.cod |
The blackberry is about to restart with the ssh application installed.
Remember establish the APN on TCP settings in order to establish TCPIP connections. You could set this on:
Next, you are ready to use SSH on your blackberry, we prefer to activate the SSH security options before start any connection. This will slow down your SSH connection but, make sense on security.
how?
- Start the SSH icon on your blackberry desktop.
- Enter in Settings
- Enter in SSH
- Configure SSH2, Public Key On, Store Session Key On, and key strength 1024bit (the best available)
After this, you can start any SSH session without troubles just starting the SSH icon, Sessions, (press blackberry button), select new on the menu, and configure the settings as follow (replace by your connections settings):
This will connect you as follow:
To type characters on the console, click on blackberry icon, and next press “type” under input.
If you want to logon with public key authentication, midpssh also allow this possibility, you can add your indentification to .ssh/authorized_hosts pasting it from your blackberry ssh session… The only thing that you need to do that is to edit the file and paste the key using the blackberry key -> special -> output -> public key
The negotiation will be SSH-DSS