LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-02-2021, 03:49 AM   #1
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Rep: Reputation: Disabled
How to connect to Slackware64-14.2 over SSH from Android (over Termux)


I have this reverse tethering setup using gnirehtet working

https://www.linuxquestions.org/quest...le-4175686458/

For those who didn't follow the thread: my Slackware64-14.2 has Internet over Ethernet. I hook up the phone over USB cable and gnirehtet lets me use the connection of the desktop so I don't waste the cap on Internet Gigabytes enforced by my mobile service provider.

I have installed Termux and openssh on phone. ifconfig there shows two interfaces:

Code:
tun0: 10.0.0.2

ccmni0: 10.22.104.192 (this seems to be the gateway too)
How do I connect from Termux back to the SSH server running on my Slackware desktop?
 
Old 01-02-2021, 12:29 PM   #2
zhl
Member
 
Registered: Oct 2020
Location: Kwangchow
Distribution: Slackware
Posts: 65

Rep: Reputation: Disabled
What's the output of "ip a" command on your desktop?
 
Old 01-02-2021, 01:47 PM   #3
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zhl View Post
What's the output of "ip a" command on your desktop?
It's just eth0 with the real IP that my ISP gives me. No interface with 10. address.
 
Old 01-02-2021, 01:52 PM   #4
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I'd use ConnectBot to do ssh. Not sure Termux can do that.
 
Old 01-02-2021, 01:59 PM   #5
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 666

Original Poster
Rep: Reputation: Disabled
And where to connect using ConnectBot? To the real IP of the desktop?
 
Old 01-02-2021, 02:42 PM   #6
zhl
Member
 
Registered: Oct 2020
Location: Kwangchow
Distribution: Slackware
Posts: 65

Rep: Reputation: Disabled
That's more like port forward tunnel on both sides.
Have searched "ssh" on that github repo and found one issue,
https://github.com/Genymobile/gnirehtet/issues/316
maybe it's 10.0.2.2

Last edited by zhl; 01-02-2021 at 02:43 PM.
 
Old 01-02-2021, 05:54 PM   #7
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Quote:
Originally Posted by FlinchX View Post
And where to connect using ConnectBot? To the real IP of the desktop?
Since both are connected to the net, yes, would use public ip as fallback at least.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Install Beautiful Desktop Environment on Termux Android! LXer Syndicated Linux News 0 11-12-2020 01:34 PM
fails to connect vnc viewer to linux - Termux noonew Linux - Mobile 0 02-02-2020 08:44 PM
LXer: Termux turns Android into a Linux development environment LXer Syndicated Linux News 0 05-17-2018 12:42 AM
LXer: Linux-Based Photographic Workflow on Android with Termux LXer Syndicated Linux News 0 10-18-2016 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration