LogoLogo
  • Welcome 😄
  • Introduction
    • Important ⚡
    • Where to begin? 🤷‍♀️
  • Installation
    • Un-Modded OS
      • Ubuntu
      • Debian
      • Kali Security OS
      • Manjaro
      • Arch Linux
      • Fedora
      • Void
      • Alpine
    • Modded OS
      • Ubuntu KDE
      • Debian XFCE
      • Ubuntu XFCE
      • Manjaro XFCE
    • Offline Installation
  • Uninstallation
    • Uninstallation 🔴
  • VNC
    • VNC Basics 📱
    • SSH Basics 👩‍💻
  • XSDL
    • XSDL Basics
  • Hardware
    • Internal Storage 📂
    • Sound 🎵
  • Software
    • Browsers
    • LibreOffice
    • Blender
    • IDEs
      • IntelliJ Idea
      • VS Code
      • JetBrains
    • GIMP
Powered by GitBook
On this page
  • SSH from Termux:
  • SSH from Linux:
  • Ubuntu 19
  • Ubuntu 18
  • Kali Security OS
  • Debian
  • Manjaro
  • Arch
  • Fedora
  • Alpine
  • Void

Was this helpful?

  1. VNC

SSH Basics 👩‍💻

Having problems setting up SSH to Android? Say no more. 🚀

PreviousVNC Basics 📱NextXSDL Basics

Last updated 5 years ago

Was this helpful?

It is recommended that SSH Server should be used from Termux instead of using it inside the Linux. Using SSH Server from Termux gives you control of both your device and your Linux OS. We are providing you both the methods below:

SSH from Termux:

SSH from Linux:

Since Linux is executed by using PRoot, it cannot override the default configurations of the Android connectivity so the port number needs to be changed. Follow the below steps to use SSH from Termux:

Install openSSH inside Linux. Choose the command for your distro accordingly from the given list:

Ubuntu 19

apt install openssh-server nano -y

Ubuntu 18

apt install openssh-server nano -y

Kali Security OS

apt install openssh-server nano -y

Debian

apt install openssh-server nano -y

Manjaro

pacman -S openssh nano --noconfim

Arch

pacman -S openssh nano --noconfim

Fedora

dnf install -y openssh-server nano

Alpine

apk add openssh-server nano

Void

xbps-install openssh nano
  • Once OpenSSH server is installed in your Linux system, we need to modify some things to make it accessible in network escaping Android limitations. Now do:

nano /etc/ssh/sshd_config 
  • Find and change the line #Port 22 to Port 2222

  • Find the line #PermitRootLogin prohibit-password or #PermitRootLogin yes and change it to PermitRootLogin yes . If it is already PermitRootLogin yes then you do not need to change anything.

  • Now when you are done with all the above steps press CTRL+X and then type Y and then press Enter

  • Now do ssh-keygen -A and then ssh-keygen

  • Now we need to set password first. To set password type passwd and set any password.

  • Once this process is complete just run /usr/sbin/sshd to start the SSH server.

  • Now just type ip a and copy the IP Address of wlan and to connect to SSH Server.

  • To connect to SSH server type ssh root@localhost -p 2222 and use the password to connect to the server.

You can follow link to get to know the process of using SSH from Termux. This tutorial is provided officially by one of the Termux developers.

this