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).
You can always get the name of your system by typing the command whoami
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
- ssh systemname@localhost -p Tcpnumber
E.g ssh u0_a182@localhost -p 8022
➣➢➤u0_a128 = system name
➢➣➤ 8022 = Tcp number
below is an image displaying the connecting system at the top and the receiving system at the bottom
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.