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

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
    39
    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.

Posting Permissions

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