How To install And Use ssh In Termux | Secured shell

Hello everyone welcome to today's article, in this article I'm going to show you how to install and use ssh on your Android phone using Termux, without root, trust me when I say this method is functioning 100% as long as you follow the procedures I'm going to show you in this Article.

What is ssh? 

The SSH protocol (also referred to as Secure Shell) is a method for secure remote login from one computer to another. It provides several alternative options for strong authentication, and it protects the communications security and integrity with strong encryption. It is a secure alternative to the non-protected login protocols (such as telnet, rlogin) and insecure file transfer methods (such as FTP).

Prerequisites:

Procedures:

The first thing to do is to make sure our packages are up to date, to do that use the command
pkg update

After updating your packages the next thing we're going to do is install ssh and nmap on Termux, and we can do that using the following command:
Pkg install openssh nmap

Now we're going to create a new password for our user account on Termux, to do that, we can simply use the command:
passwd
You'd be required to enter a new password a 6ix digits password is adviced.

starting ssh-server

You can listen to incoming connections by using the command sshd
sshd is the OpenSSH server process. It listens to incoming connections using the SSH protocol and acts as the server for the protocol. It handles user authentication, encryption, terminal connections, file transfers, and tunneling.
After that we would reveal our localhost by using the command:
nmap localhost

Nmap, or Network Mapper, is an open source Linux command line tool for network exploration and security auditing. With Nmap, server administrators can quickly reveal hosts and services, search for security issues, and scan for open ports.

Connecting To Ssh-server

If not already Installed, The first thing we do is install ssh-server on the system we want to connect with, and we can install ssh-server by using the command:
  • sudo apt install ssh-server
After ssh-server has been installed on the system now we connect by using the method below
  • ssh systemname@localhost -p Tcpnumber
 E.g ssh u0_a182@localhost -p 8022

➣➢➤u0_a128 = system name
➢➣➤ 8022 = Tcp number

You can always get the name of your system by typing the command whoami

below is an image displaying the connecting system at the top and the receiving system at the bottom

The image above displays Termux as the connecting system and userLand as the receiving system and as you can see, after userLand successfully connected to the localhost server of Termux, it started displaying everything inside the termux machine. 
That's all for this article, if you enjoyed it you can do well by subscribing to my YouTube channel and if you face any difficulty while trying to do this, you can let me know in the comments section below.

Watch the video below:

Post a Comment

Previous Post Next Post