Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: How to install tools and updates remotely on Nethunter using a Secure shell

  1. #11
    Junior Member
    Join Date
    Oct 2015
    Posts
    2
    Have you change the PermitRootLogin to yes on the /etc/ssh/sshd_config file?? If not you will not have access to ssh with root user.

  2. #12
    Junior Member
    Join Date
    Apr 2013
    Posts
    2
    Same issue here, unable to connect via SSH.

    Tried to edit the sshd_config but was unable to as the terminal emulator on my android device is very buggy.
    Can you recommend a good terminal emulator for Android?

  3. #13
    Senior Member
    Join Date
    Mar 2014
    Posts
    158
    the ssh password is the one that it cames by default with kali , however Sana version (Kali 2.0) have an option that disables the password and instead using a password for ssh connections , it creates an secure key related to a specific device that you must configure .
    This means that you can leave ssh service open to the web that no one will be able to do force passwords because the ssh will only allow the device that is configured in your nethunter with that hash .
    I did not yet put my nethunter with sana , i will do it when i get some time .
    I am not able to respond to kali 2.0 yet because i hardly get into it yet .
    Basically only my raspberry have kali 2.0 .

  4. #14
    Junior Member
    Join Date
    Aug 2015
    Posts
    7
    Hello,
    Nexus5 here 5.1.1

    I canīt connect via ssh. (Never tried this before)..
    I did apt-get-update upgrade and updated kali chroot.

    My NH-Device as well as the client are in the same Wifi.
    I tried "ssh 192.168.2.120" on windows/putty and in Ubuntu in a virtual machine.
    And ssh localhost on the NH device, always with the same result:
    Enter password:
    Permission denied, please try again.

    I tried "toor" and changed my password with passwd to something else..


  5. #15
    Senior Member
    Join Date
    Mar 2014
    Posts
    158
    By default , the ssh password is the same you use to login in kali web interface .
    try to change your password

    On your device , open a terminal in kali nethunter and write this :
    sudo passwd root
    then it will ask you for a new password , write "101010" , and confirm again .
    101010 will be your new password for login as root .

    then activate ssh service in your nethunter and connect your device to the same network .

    on putty or ssh client , put your nethunter ip address and check if when you connect to your device if it asks for user login .
    if yes then write "root"
    then it will ask you a password , write "101010"

    (dont forget to accept machine key when you connect for the first time to your nethunter using putty)

    also , do a port scan on your nethunter ip address to check if port 22 is opened .

    open a terminal and write on the linux machine your are trying to connect to your nethunter :
    nmap xxx.xxx.xxx.xxx -p 22
    xxx.xxx.xxx.xxx is your nethunter ip address .
    In case you use windows , then download nmap for windows and install it , or use any other ip scanner you may find on the web (ex:angryip scanner) , and configure it to check port 22.

    I believe that you don't have iptables or any firewall in your device blocking ssh connections , i think .
    Let us know what happened .
    Last edited by pedropt; 2015-12-03 at 11:14 PM.

  6. #16
    Junior Member
    Join Date
    Mar 2017
    Posts
    3

    Exclamation

    Quote Originally Posted by pedropt View Post
    By default , the ssh password is the same you use to login in kali web interface .
    try to change your password

    On your device , open a terminal in kali nethunter and write this :

    then it will ask you for a new password , write "101010" , and confirm again .
    101010 will be your new password for login as root .

    then activate ssh service in your nethunter and connect your device to the same network .

    on putty or ssh client , put your nethunter ip address and check if when you connect to your device if it asks for user login .
    if yes then write "root"
    then it will ask you a password , write "101010"

    (dont forget to accept machine key when you connect for the first time to your nethunter using putty)

    also , do a port scan on your nethunter ip address to check if port 22 is opened .

    open a terminal and write on the linux machine your are trying to connect to your nethunter :

    xxx.xxx.xxx.xxx is your nethunter ip address .
    In case you use windows , then download nmap for windows and install it , or use any other ip scanner you may find on the web (ex:angryip scanner) , and configure it to check port 22.

    I believe that you don't have iptables or any firewall in your device blocking ssh connections , i think .
    Let us know what happened .
    hey i tried doing this but still it dont work for me.... i am trying to connect it to my mac.. when i tried it gives me the hash than ask the password where i tried putting as well as after changing it to 101010 i tried the new one too but still it ask for the password 3 times and close the connection because fail auth attempt... plz help...

  7. #17
    Member
    Join Date
    Dec 2016
    Posts
    48
    Quote Originally Posted by DaBstard View Post
    Great info! Cheers. don't suppose you could tell me how to change the SSH password?
    In nethunter terminal type passwd.

  8. #18
    Junior Member
    Join Date
    Nov 2017
    Posts
    1
    a) First install the UNIX Scripts into our device using the installer Busybox. Download the application from the link above and install it on your mobile Linux. Open the application and follow the given steps.

    b) After downloading and installing it launch the application in your phone and there click the download button. After installation, you must configure Linux deployment. Linux Deploy is the official application for downloading and installing Kali Linux in android application downloads and installing it in your Android. Now open the app and follow the given steps.



    c) The set of icon properties it opens to the properties screen.


    d) In the properties, select the distribution must be installed. Now type in the distribution option and change it to potash Linux instead of Linux. You've pretty much included important things. Optionally, you can select your architecture, verify that the Kali mirror is correct, set your installation type and location on your Android device, etc. In general, the default value is provided. by Linux Deploy is good to start with.

    e) Now scroll up and click the Install button at the top. Depending on your Internet connection speed, this process may take some time.

    f) Please be patient for the complete installation process takes too long to complete and stop the SMS and voice call or Turn off SIM and use WIFI to download because of data disruption Dynamic removal of downloaded processes.

    g) The starting point of services like SSH and VNC for remote access is easier. All this is done automatically by pressing the "start" button. Now you can use an SSH or VNC client to access your Kali instance.



    h) Now download and install the VNC Viewer App in your Android from the play store. Now launch the app and fill in the settings.



    i) Now click the Connect button. That's it, you're done. Now Kali Linux is installed in your Android.

    j) To close the Kali Linux, exit from the VNC viewer and then go to the Linux Deployment and just press the Stop button and the OK button will close the mounted image. You can use Linux testing to penetrate your Android phone and it is the most common for hacking networks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •