Can't start SSH server
It looks like SSH server doesn't work properly here. I've tried to install it on Kali, Ubuntu and Debian using scripts from AnLinux app and using 'apt install openssh-server' command. I'm getting this problem on both methods. The server installs just fine, however I'm not able to connect to it from any remote PC. Every time I try to connect, the terminal on remote machine returns the 'Connection refused' error. Also I've checked SSH service status on my phone using 'service ssh status' and it returned '[FAIL] sshd is not running ... failed'. Port 22 is forwarded on my router. P.S. I still can connect to remote machine's SSH from my phone, but I can't do it in another direction, as I described above.
Just tried to change port 22 to any other random free port. Now querying SSH status says that SSH is running, but when trying to connect it returns 'Connection reset' error.
Did the problem fix yet? I have the same issue with kali
Idk, last used this app about month ago.
I installed ssh server on debian distro. And my attempts to connect it from windows succeeded, whereas from linux (kali and wsl) failed.
I have this same problem please fix this
I had the same problem and found the solution for Ubuntu.
The problem is that the SSH binds to port 22 by default but it's a restricted port at Android level.
You need to change the SSH config to use a different port. I used tilde text editor to edit the file:
apt install tilde
tilde /etc/ssh/sshd_config
Then change the following 2 lines:
#Port 22
#ListenAddress 0.0.0.0
into the following:
Port 2222
ListenAddress 0.0.0.0
Then save, exit tilde, and run /etc/init.d/ssh restart.
The SSH server should now be accessible at port 2222.
If it doesn't work at port 22, then you can't fix that without rooting your phone.