How to install an SSH server on your Android phone (2024)

by Jack Wallen in Mobility

on

How to install an SSH server on your Android phone

If you have a need to secure shell into your Android device, there are plenty of tools available. One of the easiest is SimpleSSH. Here's how to install and use this handy app.

Upon reading the title, the first question out of your mind might be, “Why?” the answer will depend upon your usage. You might want a secure way to copy files from your device. If you’re a developer, you might want to have easy access to the filesystem hierarchy. Whatever your reason, there are apps available in the Google Play Store that will serve this purpose well. One of my favorites is called SimpleSSHD. This Android SSH server doesn’t offer much in the way of bells and whistles, but it does the trick and does so easily.

Let’s install SimpleSSH and see how to make use of it.

Installation

I will be installing SimpleSSH on a OnePlus 3, running Android 7.1.1. SimpleSSH will run on Android 2.1 and up, so you can be certain (unless your device is really old), this app will work. SimpleSSH also does not require a rooted device.

The installation is simple. Follow these steps:

  1. Open the Google Play Store on your Android device
  2. Search for SimpleSSH
  3. Locate and tap the entry by galexand
  4. Tap Install
  5. Allow the installation to complete

And that’s it for installation. You will find the SimpleSSH launcher in your App Drawer or on your home screen (or both). Tap the app icon to start SimpleSSH.

SEE: Mobile device computing policy (Tech Pro Research)

Usage

Using SimpleSSH might not be the single most obvious task in the toolbox. Why? If you’re accustomed to using SSH, you know to log into an SSH server is only a matter of issuing a command like:

ssh USERNAME@IP

Where USERNAME is the name of a user and IP is the IP address of the remote server. One thing should immediately pop out to you–what username? Sure SimpleSSH makes it clear what IP address to use, but what about the username? Simple — you don’t work with a username. Instead, the command to secure shell into your Android device will be of the form:

ssh IP

Where IP is the IP address presented on the SimpleSSH window (Figure A).

Figure A

How to install an SSH server on your Android phone (2)

There are two other things to know about logging into the SimpleSSH server. First off, it does not use the standard SSH port of 22 (because that is a privileged port the app cannot access). Out of the box, SimpleSSH is set to port 2222. You can change this (from within Settings), but let’s assume you’ll stick with the default port of 2222. So to log into SimpleSSH, the command would now be:

ssh IP -p 2222

Tap the START button on the SimpleSSH window and then, back at your desktop client, issue the above command. You will see a one-time password appear on the SimpleSSH screen (Figure B). Enter that password from the terminal you are using to log into the SimpleSSH server and you will be given access.

Figure B

How to install an SSH server on your Android phone (3)

That password will only work with one login attempt. If you type it incorrectly, you will be given a new one-time password. Once you’ve successfully logged in, you will be deposited into the /storage/emulated/0/ssh directory. Do note, this directory is not readable, so you will have to change to a directory that does have read access. Issue the command cd ../ and you will move up one directory (to /storage/emulated/0) that does offer read and write access.

SEE: Special report: Cybersecurity in an IoT and mobile world (free PDF) (TechRepublic)

SCP

SimpleSSH also enables the use of secure copy. Say you want to securely copy a file from your desktop to your Android device. This can be done using the scp command. The one thing you must remember, is that scp handles alternative ports a bit differently than does ssh. So the command to copy a file from a desktop to your Android device would look like:

scp -P 2222 /PATH/TO/LOCAL/FILE IP:/PATH/TO/REMOTE/FILE

Where IP is the IP address of your Android device, /PATH/TO/LOCAL/FILE is the path that houses the file on the local device (ending with the filename), and /PATH/TO/REMOTE/FILE/ is the path that will house the remote file (ending with the filename). When you issue that command, SimpleSSH will give you a new one-time password to use. Once authenticated the file will copy and you’re good to go.

After you are finished using SimpleSSH, make sure to stop the server, by tapping the STOP button.

SSH server made simple

There are a few SSH servers available for Android, but SimpleSSH makes connecting via ssh (or scp) a bit simpler than the other tools. Give this app a try and see if it doesn’t help make your ssh to Android connections needs a bit easier.

How to install an SSH server on your Android phone (4)
How to install an SSH server on your Android phone (5)

Subscribe to the Daily Tech Insider Newsletter

Stay up to date on the latest in technology with Daily Tech Insider. We bring you news on industry-leading companies, products, and people, as well as highlighted articles, downloads, and top resources. You’ll receive primers on hot tech topics that will help you stay ahead of the game.

Delivered Weekdays

Sign up today

Also See

By Jack Wallen

Jack Wallen is an award-winning writer for TechRepublic, The New Stack, and Linux New Media. He's covered a variety of topics for over twenty years and is an avid promoter of open source. For more news about Jack Wallen, visit his website jackwallen.com.

  • Account Information

    Contact Jack Wallen

  • |
  • See all of Jack's content
  • Google
  • Mobility

Editor's Picks

  • TechRepublic Premium

    TechRepublic Premium Editorial Calendar: IT Policies, Checklists, Hiring Kits and Research for Download

    TechRepublic Premium content helps you solve your toughest IT issues and jump-start your career or next project.

  • Artificial Intelligence

    Microsoft’s First Generative AI Certificate Is Available for Free

    Microsoft is also running a grant competition for ideas on using AI training in community building.

  • Cloud Security

    How Generative AI is a Game Changer for Cloud Security

    Generative AI will be a game changer in cloud security, especially in common pain points like preventing threats, reducing toil from repetitive tasks, and bridging the cybersecurity talent gap.

  • Payroll

    The 8 Best International Payroll Services for 2023

    Does your business need a payroll provider that offers international payroll services? Use our buyer's guide to review the best solutions, from ADP to Oyster.

  • Artificial Intelligence

    ChatGPT Cheat Sheet: Complete Guide for 2023

    Get up and running with ChatGPT with this comprehensive cheat sheet. Learn everything from how to sign up for free to enterprise use cases, and start using ChatGPT quickly and effectively.

  • Project Management

    6 Best monday.com Competitors and Alternatives for 2023

    Looking for an alternative to monday.com? Our comprehensive list covers the best monday alternatives, their key features, pricing, pros, cons and more.

How to install an SSH server on your Android phone (13)

Subscribe to the Daily Tech Insider Newsletter

Stay up to date on the latest in technology with Daily Tech Insider. We bring you news on industry-leading companies, products, and people, as well as highlighted articles, downloads, and top resources. You’ll receive primers on hot tech topics that will help you stay ahead of the game.

Delivered Weekdays

Sign up today
How to install an SSH server on your Android phone (2024)

FAQs

How to install an SSH server on your Android phone? ›

Open the Google Play Store on your Android device. Search for SimpleSSH. Locate and tap the entry by galexand. Tap Install.

How to install SSH server on Android? ›

Open the Google Play Store on your Android device. Search for SimpleSSH. Locate and tap the entry by galexand. Tap Install.

Does Android have an SSH server? ›

Yes, you can use SSH to connect to an Android device remotely. You can do this either by installing an existing Android SSH app that turns the device into an SSH Server or by installing a custom version of Android that comes with Android SSH functionality built into it.

Which is better SSH or VPN? ›

You should choose a VPN over SSH if you're searching for a solution to use the internet with more privacy and security. However, you should pick SSH if you're looking for ways to safely connect to remote resources.

What is the difference between OpenSSH and SSH? ›

SSH (Secure Shell) is a tool for secure system administration, file transfers, and other communication across the Internet or other untrusted network. It encrypts identities, passwords, and transmitted data so that they cannot be eavesdropped and stolen. OpenSSH is an open-source implementation of the SSH protocol.

How to use SSH server on Android? ›

Connecting to an SSH server is easy. All you have to do is fill out the Host Name (or IP address), select the port number, select either Telnet or SSH, and choose portrait or landscape mode. You should notice, when you tap either Telnet or SSH, the port number does not automatically change.

What is SSH key Android? ›

Essentially, SSH keys are an authentication method used to gain access to an encrypted connection between systems and then ultimately use that connection to manage the remote system.

How to install Linux server on Android? ›

The best way to get Linux is to use AndroNix, Termux, and VNC Viewer. AndroNix is a popular Android app that lets you install Linux on Android. You can use it to install Linux at no cost. Termux, on the other hand, is a powerful terminal emulation that gives you access to bash and zsh shells.

Top Articles
Latest Posts
Article information

Author: Nicola Considine CPA

Last Updated:

Views: 6294

Rating: 4.9 / 5 (69 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Nicola Considine CPA

Birthday: 1993-02-26

Address: 3809 Clinton Inlet, East Aleisha, UT 46318-2392

Phone: +2681424145499

Job: Government Technician

Hobby: Calligraphy, Lego building, Worldbuilding, Shooting, Bird watching, Shopping, Cooking

Introduction: My name is Nicola Considine CPA, I am a determined, witty, powerful, brainy, open, smiling, proud person who loves writing and wants to share my knowledge and understanding with you.