meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.16k stars 678 forks source link

correct password can't connect to ssh #1109

Open drshiki opened 5 years ago

drshiki commented 5 years ago

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?

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

tried busybox version

tried user/password

ptrkc commented 5 years ago

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"

drshiki commented 5 years ago

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

ptrkc commented 5 years ago

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.

snug commented 3 years ago

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!

NikMAX2077 commented 1 year ago

Same problem

wobbex2 commented 2 months ago

Same problem with openssh-server. Workaround: Uninstall openssh-server (do not uninstall openssh-sftp-server!); Install dropbear.. Now i can connect to my phone with my filemanager:

Bildschirmfoto