> ## Content Index
> Fetch the complete content index at: https://linuxhandbook.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Transform Your Phone into A Portable Mini Workstation to Manage Your Servers!
- URL: https://linuxhandbook.com/server-ssh-android/
- Published: 2021-08-16T13:32:01.000Z
- Updated: 2021-08-17T03:52:38.000Z
- Description: Turn your Android phone into a portable mini-workstation with this tweaky guide!
- Author: Avimanyu Bandyopadhyay
- Tags: Tutorial

​This guide will make your remote work life a lot easier by transforming your phone into a portable workstation. It helps me a lot in my day-to-day remote work activities, and so I really wanted to share how I did it with you! 

But before I start with the technical details, please allow me to share a few thoughts about the transformational shifts in remote work in these changing times.

## The Remote Work Revolution

![Remote Work](https://linuxhandbook.com/content/images/2021/08/remote-work.webp)

It's far more than a year since the pandemic spread, and that has given new recognition to [the idea of #WorkFromHome](https://www.shrm.org/hr-today/news/all-things-work/pages/remote-work-has-become-the-new-normal.aspx?ref=linuxhandbook.com). People who were new to the idea [learned a lot from](https://www.businessinsider.in/enterprise/all-700-employees-at-this-startup-work-remotely-heres-why-one-of-its-top-execs-says-its-given-them-a-major-edge-on-the-competition/articleshow/66017301.cms?ref=linuxhandbook.com) the already existing [remote work community](https://www.wifitribe.co/blog/remote-work-community/?ref=linuxhandbook.com) back in the early days of the epidemic. 

But for remote workers, business is as usual.

This guide, particularly, focuses on that aspect — to make it easy to work from anywhere with minimal hardware necessity. Take me for example — I've been working with [It's FOSS](https://itsfoss.com/?ref=linuxhandbook.com), [Linux Handbook](https://linuxhandbook.com/) and [High On Cloud](https://highoncloud.com/?ref=linuxhandbook.com) for many years since [the pre-CoViD era of remote work](https://www.linkedin.com/pulse/remote-work-resources-you-can-trust-pre-covid-game-changers-smith/?ref=linuxhandbook.com).

My current line of work includes taking regular care of our cloud servers and the web apps running on them from time to time.

I'm going to show how I do that when I don't have my laptop around. It makes your remote work life immensely easier and convenient! If you are into core DevOps and SysAdmin work roles, this is really going to help you.

So let's dive in…

## Prerequisites

Before I begin, it is necessary to walk you through the software and hardware requirements quickly:

- A cloud server on [Linode](https://www.linode.com/?ref=linuxhandbook.com), [Digital Ocean](https://www.digitalocean.com/?ref=linuxhandbook.com) or any other cloud service.
- An [Android phone oriented in landscape fashion](https://www.wikihow.com/Switch-to-Portrait-or-Landscape-Mode-on-Android?ref=linuxhandbook.com)(preferably with flip cover for stand)

![Android phone with flip cover oriented in landscape fashion](https://linuxhandbook.com/content/images/2021/08/flip-cover-as-stand.webp)

Android phone oriented in landscape fashion

- A [Mini Wireless Keyboard with Touchpad](https://www.amazon.in/gp/product/B07JRGQ6M2/?ref=linuxhandbook.com) for the “mini-workstation” experience \[optional\]

![Mini Wireless Touchpad+Keyboard with USB Dongle](https://linuxhandbook.com/content/images/2021/08/mini-wireless-keyboard.webp)

Mini Wireless Touchpad+Keyboard with USB Dongle

- [USB Type C 3.0 to USB A Female OTG Adapter](https://www.amazon.in/gp/product/B089Z64JFQ/?ref=linuxhandbook.com) (For phones with USB Type C port) \[optional\]

![USB-C to USB-A Female OTG Adapter](https://linuxhandbook.com/content/images/2021/08/otg-usb-type-c-2.webp)

USB-C to USB-A Female OTG Adapter

- [Micro USB to USB A Female OTG Adapter](https://www.amazon.in/gp/product/B0742BBQPG/?ref=linuxhandbook.com) (For phones with Micro USB port) \[optional\]

![Micro-USB to USB-A Female OTG Adapter](https://linuxhandbook.com/content/images/2021/08/otg-micro-usb-1.webp)

Micro-USB to USB-A Female OTG Adapter

- [ConnectBot Android App](https://f-droid.org/en/packages/org.connectbot/?ref=linuxhandbook.com) or any other Terminal based App
- Android phone's SSH public key added on your cloud server (generated from ConnectBot)

So, that's the recipe! Let's now begin cooking :) :

## Software Setup

You can either install the [ConnectBot app](https://f-droid.org/en/packages/org.connectbot/?ref=linuxhandbook.com) from [F-Droid](https://f-droid.org/?ref=linuxhandbook.com) or Google Play. I prefer F-Droid.

Once that's installed, it's time to generate your SSH key and add your cloud server on the app.

### Generating SSH Key on ConnectBot

Open the app on your phone and tap on the three dots on the top right:

![img](https://linuxhandbook.com/content/images/2021/08/connect-bot-setup-1.webp)

Select `Manage Pubkeys` from the menu that appears.

![img](https://linuxhandbook.com/content/images/2021/08/connectbot-setup-2-1.webp)

Tap on the "+" symbol as shown below:

![img](https://linuxhandbook.com/content/images/2021/08/connectbot-setup-3-1.webp)

Now, generate your key. Here, I've named it ⁣`mini-workstation` and also made sure `Load key on start` is enabled. Tap on `GENERATE` located at the bottom:

![img](https://linuxhandbook.com/content/images/2021/08/connectbot-setup-4-1.webp)

Keep touching the box until it reaches 100%. This action ensures randomness during key generation:

![img](https://linuxhandbook.com/content/images/2021/08/connectbot-setup-5-1.webp)

There, your key has now been generated:

![img](https://linuxhandbook.com/content/images/2021/08/connectbot-setup-6-1.webp)

Press and hold on it to reveal a drop-down menu:

![img](https://linuxhandbook.com/content/images/2021/08/connectbot-setup-7-1.webp)

Copy the public key. You are going to need this on the server you'd be logging in, towards enabling portable accessibility. To do that easily for future servers, you can save it on your cloud service account profile. You could also keep the private key(seen below `Copy public key` above) backed up in a safe location for safekeeping.

Once you successfully [add your SSH public key to your cloud server](https://linuxhandbook.com/add-ssh-public-key-to-server/), you are now ready to add the server to access it from anywhere with your phone.

[How to Add SSH Public Key to ServerPublic key authentication allows you to access a server via SSH without password. Here are two methods to copy the public ssh key to the server.![](https://linuxhandbook.com/assets/icon-192x192.png?v=a3a325d196)Linux HandbookAbhishek Prakash![](https://linuxhandbook.com/content/images/2020/06/SSH-Public-Key-Authentication-1.png)](https://linuxhandbook.com/add-ssh-public-key-to-server/)

Now let's get back to the same ConnectBot homescreen. Tap on the "+" inside the blue circle down below on the right:

![img](https://linuxhandbook.com/content/images/2021/08/connectbot-setup-8-1.webp)

As the syntax reveals what you must do, enter your server username with IP/domain and specify the port number your SSH configuration uses. 

After that is done, set the font size to 15 for better readability when you'll be using the server terminal on your phone. Now press and hold on `Use pubkey authentication` and select the SSH public key that was just created and added:

![img](https://linuxhandbook.com/content/images/2021/08/connectbot-setup-9-1.webp)

Once that's set, it's better you give it an easy-to-understand nickname as well:

![img](https://linuxhandbook.com/content/images/2021/08/connectbot-setup-10-1.webp)

Now, enable `Use SSH auth agent`. `require confirmation` would be automatically enabled once you select it.

![img](https://linuxhandbook.com/content/images/2021/08/connectbot-setup-11-1.webp)

If you have a slow internet connection, you can enable `Compression`. You can also enable `Stay connected` if you get disconnected due to [SSH security](https://linuxhandbook.com/ssh-hardening-tips) timeouts while working. Enabling it will automatically reconnect you to the host in such a case.

There, you now have your server added to ConnectBot!:

![img](https://linuxhandbook.com/content/images/2021/08/connectbot-setup-12-1.webp)

This way you can add more servers and with this setup, your phone becomes a portable device to access them from anywhere with an internet connection!

## Hardware Setup

But wait, this isn't quite enough, because when you get access via a terminal, there is less screen space to view because of the on-screen keyboard. This inconvenience can be taken care of with a portable mini wireless keyboard(including touchpad!) that I've linked above in our list of “ingredients” ;) .

It comes with a [Nokia BL-4C](https://www.cnet.com/products/nokia-bl-4c-cellular-phone-battery-li-ion-series/?ref=linuxhandbook.com) battery that can last for days on a single charge! The charging cable is available with it, along-with the USB dongle for wireless connectivity. Lastly, you also require an [OTG adapter](https://www.samsung.com/au/support/mobile-devices/what-is-an-otg-on-the-go-cable/?ref=linuxhandbook.com) to be able to connect the dongle to your phone. In general, depending upon the phone's USB port type, you either need a USB-C or a Micro-USB type OTG converter(linked above in the prerequisites section).

So, the “mini-workstation transformation” process consists of the following steps below:

- Connect the USB dongle, available with the keyboard, to the OTG connector.
- Make sure OTG is enabled on your phone settings.
- Connect that USB+OTG combo to your mobile phone.
- Enable orientation on your phone for the “mini-workstation” experience when you rotate/tilt it sideways.
- Flip the power-on switch, located in the top right corner of the mini device.
- Use the mini-touchpad on the keyboard to notice a new cursor appear on your mobile screen as you move your finger(that means it's working!).
- After the touchpad test, open any notes app on your phone and test your keyboard by typing in random keys.
- You're all set! Launch ConnectBot and [go Neo](https://youtu.be/Smwrw4sNCxE?ref=linuxhandbook.com)!

Adopting this setup has been a lot of fun and helpful for me since recently, particularly because this is a full-fledged multimedia keyboard!

Here's my “mini-workstation” in action, running the `htop` command on a Linode test server :) !:

![An Android Phone converted into a portable mini-workstation with the help of an OTG adapter and Wireless keyboard](https://linuxhandbook.com/content/images/2021/08/mini-workstation.webp)

An Android phone transformed into a portable mini-workstation!

That's not it, actually. There's a lot more you can do with such a portable and remote-work friendly setup. You can also have a desktop experience with amazing tools such as [Andronix](https://andronix.app/?ref=linuxhandbook.com) on your phone! Here's a little something from a past experiment ;) !:

![Xfce desktop environment running over Andronix on an Android phone](https://linuxhandbook.com/content/images/2021/08/xfce-andronix.webp)

Xfce running over Andronix on an Android phone

Perhaps I'll discuss it another day on [It's FOSS](https://itsfoss.com/?ref=linuxhandbook.com)!

Hope you enjoyed this little adventure on transforming your existing gadget into a mini-pc! Thank you for reading! If you try this guide somewhere down the line, do let us know your experiences in the comment section below! Till then, adios!