Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

SmartCloud tip: Secure access for Android devices

Set up an Android mobile device to securely access an IBM Cloud instance

Stefan Diederichs, Technical Consultant, IBM
Stefan Diederichs is an IBM Certified Specialist; he works in the Design Center for Cloud Computing at the IBM Research and Development Lab in Boeblingen, Germany. He is a consultant in cloud computing.

Summary:  Learn how to connect an Android mobile device to an IBM SmartCloud Enterprise instance via an OpenSSH connection. The author shows you the steps you need to take to install and configure an Android smartphone to connect to the IBM Cloud in a secure way. The starting point is an IBM Cloud instance that is accessed by a secure PuTTY connection from a Windows system.

View more SmartCloud Enterprise tips

Date:  10 Oct 2011
Level:  Introductory PDF:  A4 and Letter (358 KB | 8 pages)Get Adobe® Reader®
Also available in:   Chinese  Japanese

Activity:  8549 views
Comments:  

IBM® SmartCloud Enterprise provides on-demand development and test infrastructure services for enterprises. With the increasing use of mobile devices to access cloud applications, it is important to know how to connect a mobile device (in this case, an Android mobile smartphone) to a cloud instance (in this case, an IBM SmartCloud Enterprise instance) in a secure manner (via an OpenSSH connection).

This article shows you how to install and configure an Android smartphone so that it connects to the IBM Cloud in a secure way. The starting point is an IBM Cloud instance that is accessed by a secure PuTTY connection from a Windows® system.

The steps include:

  1. Accessing an instance with PuTTY from Windows.
  2. Converting to an OpenSSH key.
  3. Installing the SSH client on an Android device.

The Android mobile operating system is managed by the Android Open Source Project led by Google.

Access an instance with PuTTY from Windows

PuTTY is a free, open source teminal emulation application that acts as a client for SSH. SSH, or Secure SHell, is a network protocol for remote administration of UNIX computers.

In a Windows systems, use PuTTY to access the IBM Cloud instance (in this case, a Linux® instance). The private key in this example is my_rsa.ppk (Figure 1).


Figure 1. Accessing PuTTY and choosing key for authentication
Accessing PuTTY and choosing key for authentication

The default user in the new created Linux instance is idcuser (Figure 2).


Figure 2. The default user is idcuser
The default user is idcuser

Convert to OpenSSH key for Android device

OpenSSH (OpenBSD Secure Shell) is a set of computer programs providing encrypted communication sessions over a computer network using the SSH protocol. It was created as an open source alternative to the proprietary Secure Shell.

Convert your key to an OpenSSH key for the Android smartphone.

  1. Run puttygen (the PuTTY key generator) and load the key file my_rsa.ppk.
  2. Export the OpenSSH key and save it as my_openssh.

    Figure 3. The PuTTY key generator
    The PuTTY key generator

  3. Specify the my_openssh file to transfer to /mnt/sdcard on the Android phone via USB cable, BlueTooth, or any method you prefer.

Install the SSH client on Android

For this article I used ConnectBot, an open-source Secure Shell (SSH) client, to connect to the Secure Shell server of the IBM SmartCloud Enterprise instance.


Figure 4. ConnectBot
ConnectBot
  1. After installatation, import the private key by selecting Menu > Manage Pubkeys > Copy Private Key.
  2. On the connection settings, select Used pubkey Authentication > my_openssh.

Here's a shot of the connection. That's all there is to it.


Figure 5. Connected!
Connected!

Resources

Learn

Get products and technologies

Discuss

About the author

Stefan Diederichs is an IBM Certified Specialist; he works in the Design Center for Cloud Computing at the IBM Research and Development Lab in Boeblingen, Germany. He is a consultant in cloud computing.

Report abuse help

Report abuse

Thank you. This entry has been flagged for moderator attention.


Report abuse help

Report abuse

Report abuse submission failed. Please try again later.


developerWorks: Sign in


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

Choose your display name

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


Rate this article

Comments

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Cloud computing, Security
ArticleID=763731
ArticleTitle=SmartCloud tip: Secure access for Android devices
publish-date=10102011