How to control your kali machine with android device using SSH

First of all let me say that this is not a big deal for pro hackers and network administrators. We are going to control kali linux machine with an Android device using SSH (secure shell) service. SSH protocol allows you to connect to a remote system and interact with shell with highly encrypted communication method.  Since this is encrypted, this is the best way to interact with a remote system over an unsecured network. Its a successor of an unsecured remote shell protocol telnet and it replaced protocols like RSH, REXEC and RLOGIN.

SSH use public key cryptographic method to authenticate a remote user which includes two methods.  We can use automatically generated keys for authentication much similar to HTTPS protocol but it requires user password. The second method is manually using public-private key pair method. The second method is not much secure as anyone impersonate a user with another pair of keys. Here we are using password authentication method which is easy and safe.

Since it is a client-server method of communication we have to setup server on kali machine and a client application on android. Openssh is the best way to setup server on kali machine. Openssh aka OpenBSD Secure Shell is a bit updated version of normal SSH.Setup server and login with client app called juiceSSH, just follow the steps.

NOTE: Forward port 22 on your router for remote connection over the internet.

Demo video

Requirements

Install openSSH server in kali linux.

# apt-get install openssh-server

Download and install juiceSSH from playstore on your android device.

Setup ssh server

After installing ssh server you can configure port, authentication method, key management etc by editing the config file in “/etc/ssh/sshd_config” if you don’t know much about these leave as it is. Use the following command to open config file in gedit text editor

# sudo gedit /etc/ssh/sshd_config

After configuring it start ssh-server with the following command.

# service ssh start

Now all you need is the Kali IP address, username and password. here in this case password for root” is “toor” . Now take your android phone and move on to next step.

Connect to server with Android

  1. install Juice SSH.
  2. open it and go to connections.
  3. Create new ( + button).
  4. Enter nickname and kali IP address in the address field.
  5. Create new identity, input any name and input kali machines username in the username field (here its “root”)
  6. Input the kali machine’s password for that user (here its “toor”)
  7. Apply everything and back in main menu you can find new connection is created.
  8. Click on that to connect to Kali linux.

After connecting you can execute all terminal commands with your android phone.

Any doubts or questions? post it on the comment section below. If you like this blog give me a like on facebook and add me on google plus. Subscribe my youtube channel for video tutorials.

 

susmith HCK

susmith HCK

I’m a computer enthusiast basically and i love to write blogs on tech issues and cyber security. I started penetration testing at the age of 16 and i would like to explore security vulnerabilities and latest tech news and wanna share with you. If you like all these stuffs add me on Facebook and Google plus.

2 thoughts on “How to control your kali machine with android device using SSH

  • November 25, 2016 at 11:29 pm
    Permalink

    Hi!
    i tried to do what you’ve explained in this tutorial, but when i try to connect to my server with JuiceSSH, it asks me everytime a password (it should be the password of my Kali linux’s account, but it isn’t!)
    Can you help me?
    Best Regards.

    Reply
    • susmith HCK
      November 26, 2016 at 12:55 pm
      Permalink

      if the username is root then enter the root password of your linux machine

      Reply

Leave a Reply

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