Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cannot use SSH / Cannot even install #2484

Closed
Quin452 opened this issue Dec 20, 2021 · 6 comments
Closed

[Bug]: Cannot use SSH / Cannot even install #2484

Quin452 opened this issue Dec 20, 2021 · 6 comments

Comments

@Quin452
Copy link

Quin452 commented Dec 20, 2021

Problem description

I wanted to use Termux because I simply wanted to test a homeserver from outside of the LAN (using my mobile's data).

I installed Termux, and tried pinging, and that didn't work. I tried SSH, and that didn't work either, but that's because it said it wasn't installed. It recommended pkg dropbear and openssh, but both of those failed due to the URL. I tried apt openssh, and it said the package couldn't be found.

So I'm not sure what's going on. I can't ping my home server, but I can SSH just fine.
I'm trying Termux in order to test my router's port forwarding (which is the main [unrelated] issue).

I've noticed others posting these things here.
My phone is rooted, with LineageOS installed (I'm not sure if that matters). Are there any permissions I need to grant Termux (I have just granted it Storage).

Steps to reproduce the behavior.

ping IP

or ssh username@IP

What is the expected behavior?

No response

System information

  • Termux application version: I downloaded it from Google Play (Sep. 2020 version?)
  • Android OS version: LineageOS 18
  • Device model: Razer Phone
@Grimler91
Copy link
Member

and tried pinging, and that didn't work. I tried SSH, and that didn't work either,

What does "that didn't work" mean? What did you run, and what output did you get exactly?

I tried apt openssh, and it said the package couldn't be found.

apt openssh, if that is what you ran, is not a proper apt command, see apt --help

I can't ping my home server, but I can SSH just fine.

What do you mean? Three sentences earlier you said that ssh "didn't work"

@Quin452
Copy link
Author

Quin452 commented Dec 20, 2021

Sorry, I assumed people would follow the paraphrasing.

I ran ssh username@IP. It came back with "The program ssh is not installed. Install it by executing pkg install dropbear or ... openssh".
"username" and "IP" are placeholders.

I tried both of those and it goes through the process, but breaks at (and I'm not writing out every single line in full):

  • GPG error
  • The repo grimler.se is not signed
  • Metadata integrity can't be verified
  • Repo is disabled
  • Repo is under maintenance or is down

I tried with apt install openssh, because heck, I know Ubuntu well and thought I'd give it a shot (that doesn't work/cannot be found).

I've also tried this when installed Termux through FDroid. Same result.

@Grimler91
Copy link
Member

Grimler91 commented Dec 20, 2021

The repository issues are due to termux from google play being deprecated, the subscribed repository in that app version are down or are signed with keys that are missing from the termux-keyring package in that version, see pinned issue #2067.

If ping/ssh doesn't work then there's probably a firewall in the way, or some issue with your internet connection

I've also tried this when installed Termux through FDroid. Same result.

termux from FDroid should work fine, but termux-keyring needs to be updated before you can use the grimler.se mirror (all other mirrors should work out of the box though, you can change mirror with termux-change-repo)

@Quin452
Copy link
Author

Quin452 commented Dec 20, 2021

Okay. I understand. How do I update the keyring? Is this related to "change repo"? I think I'll stick with F-Droid (assuming that I can't fix the Play version).

@Grimler91
Copy link
Member

curl -LO https://packages.termux.org/apt/termux-main/pool/main/t/termux-keyring/termux-keyring_2.4_all.deb
apt install ./termux-keyring_2.4_all.deb
apt update && apt upgrade

should work

@ghost
Copy link

ghost commented Dec 30, 2021

I downloaded it from Google Play (Sep. 2020 version?)

Play Store version is outdated and shouldn't be used anymore. Use apk from F-Droid.

Keyring fix may be needed only for grimler.se mirror.

Everything else is quite trivial: pkg install openssh (worked fine at 2021.12.30).

@ghost ghost closed this as completed Dec 30, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants