Connecting To Your Linux System With Your Android Phone | Network World| ItSoftNews

While using your cell phone to connect to your Linux system might not seem like much of a priority, it is possible and you might have a good reason to do this from time to time. If you have an Android cell phone, you can install a tool that will allow you to connect, open a terminal session on your Linux box and run commands just like you would if you were sitting in front of the system. Well, almost.

The tool that I recommend is called JuiceSSH. It installs easily and leaves an icon with an image of a lemon with its name below it on your screen. Click on that icon and select Quick Connect to set up your connection.

JuiceSSH image 1 connect Sandra Henry-Stocker

You will need to enter something like user@192.168.0.4:22 with your Linux username, the target system’s IP address and port 22 specified. The form should default to saving the connection as shown in the image above. Enter your password when prompted.

Before you get started with any serious work, you will probably want to enlarge your font. To do that, go to Settings and scan down the menu looking for Font and Font size to make your selections.

JuiceSSH image 2 settings Sandra Henry-Stocker

When changing the font size, you can slide down to one that works for you. The sizes run from 1 to 30 points. Keep in mind that output from most commands will likely wrap around, since the screen on your cell phone is fairly narrow.

JuiceSSH image 3 font size Sandra Henry-Stocker

You can also change other settings (e.g., theme colors) if you want to customize your sessions further.

Once you have connected to Linux, you can ask who is logged in on the target system using the who command. You might see something like this.

$ who justme  tty2    2022-06-02 11:05 (tty2) 	<== console login nemo    pts/0   2022-06-02 12:38 (192.168.0.12) <== login from another system justme  pts/1   2022-06-02 12:43 (192.168.0.6)	<== login from your Android cell phone 

If there are multiple logins, they will look very similar, but the most recent should be at the bottom of the listing and will display your cell phone’s IP address.

To go back to doing something else on your phone while leaving your JuiceSSH session active, tap the home button. Mine is a little circle in the middle at the bottom of my screen. It looks something like this:

        ◁                  ▢ 

Later, you can reenter your Linux session simply by clicking on the JuiceSSH icon again.

Once you’re back in your SSH session, you can tap repeatedly on the up arrow to repeat prior commands as you would when logged in at the console or using putty. If you don’t see the arrow, tap on the screen portion of the display – above the keyboard. After pressing the up arrow a number of time, pressing the down arrow will walk you back down to more recently entered commands.

JuiceSSH image 4 session Sandra Henry-Stocker

Tap CTRL in the line above your screen keyboard and then press “D” or simply type “logout” in your terminal window to exit your SSH session.

NOTE: This post describes the free version of JuiceSSH. There is also a “Pro” version with additional features.

Wrap-up

While it isn’t likely something you’ll need to do often, it’s nice to know that you can use your Android cell phone to log into your Linux system. Fortunately, it’s a lot easier to do this than you likely imagined. I hope you try it out and find some ways that it can be useful.

Leave a Reply

Your email address will not be published. Required fields are marked *