termux / termux/termux-api

Can't connect through ssh

Open
#517 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

My Android is MIX4, and it developed base on Android 12.

Here's the problem I come across...
I wanted to connect Termux, or ubuntu I installed in Termux through ssh.
But I find there's something wrong with it.
I cannot connect through ssh, like tutorials I found on internet.
I cannot ping with host under the same subnet.
I found that default gateway set in Termux is 192.168.43.0/24, while the gateway is actually 192.168.43.29...
I think this is a fair rare situation...
And I want to add default gw into ubuntu, through
ip route add default via 192.168.43.29 dev wlan0
but get,
Cannot talk to rtnetlink: Permission denied.
I realize that it may need root...so,
Can you find a way out to add default gateway in Termux???
Thanks!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files, tests, or entry points are named. Start by reproducing the SSH and same-subnet ping failures on the reported MIX4 and Android 12 setup, then examine the Termux and Ubuntu routing state around the default gateway and permission error. Done means documenting a supported way to establish connectivity, or confirming that the requested route requires unavailable privileges.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, shell, ubuntu
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.