linuxdeploy icon indicating copy to clipboard operation
linuxdeploy copied to clipboard

correct password can't connect to ssh

Open drshiki opened this issue 5 years ago • 6 comments

the container is mounted successfully, but I can't connect to ssh, I tried kali,arch,debian,centos all these distros start ssh fail, only ubuntu precise version could start ssh successfully but other version also start fail. start ubuntu precise version ssh successfully but I can't connect to it with configured user and password, and the terminal in upper right corner menu doesn't open terminal but led me to http://127.0.0.1:5080, why???, I also can't find any installed file in my storage such as I search 'ssh' keyword returning no result, now I don't have any idea how to fix it, spent whole day to find the solution but not found, my device already root, anyone any suggestion? so my questions are: 1. how to fix ssh can't connect? 2. how to open terminal to use my installed ubuntu?

my steps is:

  1. install busybox
  2. install linux deploy
  3. setting and configuration
  4. install ubuntu
  5. click configure in menu
  6. start container linux deploy version 2.3.1-247 busybox version 1.28.3-36 C2285B8B948C9B96CBC7081171D5C6A0 linux deploy setting E46E92F4D8B7E823C8EA7939ABF9FC01 1EA2F8F72C59380106A8B8D9AFD084FD 4C9BCE2FB6CC84D9D75212B646E7B055 8BCAABA19267D1C21C582629DAEAB7BD

linux deploy configuration FB539B37CAF2E4468BB83FC652E173C7 057AB8A6D3E645476E073082D98B600E FDDCBB09688C1D107420EABD25A83940 91F56C51FA650B7EAF98243257325286 183BC7C02950BC35E773A3DBDC8E2FBE

linux deploy status 05062C3323AE1B94520672B9E3DA302A 3DD07F8BDB5F878A87D57107EB91805A

linux start debug log DA8AF98CDE9C99DF4965C94D89F7DE3B DE8316A871C2648FF458E55EBC0DA570

tried busybox install directory

  • /system/xbin
  • /system/bin

tried busybox version

  • latest in google play
  • 1.28.3-36

tried user/password

  • root/12345678
  • root/changeme
  • android/changeme
  • hj/12345678
  • hj/changeme

drshiki avatar Aug 13 '19 05:08 drshiki

I had a problem where ssh would only work on specific distros. I can't tell if it's the same you are experiencing. I can't give you a fix but I can give you a workaround:

Don't use Linux Deploy's ssh. Install Termux and run the ssh server from there. To connect directly to your distro, use the command below.

ssh YOUR_PHONE_IP -p8022 -t "su -c linuxdeploy shell -u USERNAME"

ptrkc avatar Aug 28 '19 14:08 ptrkc

I had a problem where ssh would only work on specific distros. I can't tell if it's the same you are experiencing. I can't give you a fix but I can give you a workaround:

Don't use Linux Deploy's ssh. Install Termux and run the ssh server from there. To connect directly to your distro, use the command below.

ssh YOUR_PHONE_IP -p8022 -t "su -c linuxdeploy shell -u USERNAME"

Is there some ways lead me to connect my andriod phone from my computer? I want to use it on my computer

drshiki avatar Sep 04 '19 04:09 drshiki

Yes, you can just run the command on my last reply on your computer. Change your phone IP and the username you chose for your installation, "hj" as I see on your screen shots.

Just one thing: I see that you're using cellular network. I don't know how that would work out. You should connect your phone and computer on the same network and use a local IP.

ptrkc avatar Sep 04 '19 20:09 ptrkc

Hey @ptrkc, did you ever find out what was wrong with your Linux deploy setup? Having the same problem, but thank you very much for the workaround!

snug avatar Feb 06 '21 16:02 snug

Same problem

NikMAX2077 avatar Apr 23 '23 11:04 NikMAX2077