[Q] SSH Tunnel - Android Q&A, Help & Troubleshooting

I'm looking for an app that can handle SSH tunneling with RSA keys instead of a simple password.
It should work like "SSH Tunnel" or "ProxyDroid" (I need to encrypt my internet traffic when using public wi-fi) but with RSA autentication.
Any suggestion?
Thanks

Try connect Bot

morph1us said:
Try connect Bot
Click to expand...
Click to collapse
Can't figure out how to bypass all my internet traffic trought SSH (like I can do with ProxyDroid). Is there a command to use or a special configuration? I can't find anything in the options.

Ok, I managed to use port-forwarding on connect-bot and use ProxyDoroid, as described here.
The problem is that it works only for a few seconds (I suspect it stops working after I successfully connected to the first website I want to visit).
Any suggestion?

zudrev said:
Ok, I managed to use port-forwarding on connect-bot and use ProxyDoroid, as described here.
The problem is that it works only for a few seconds (I suspect it stops working after I successfully connected to the first website I want to visit).
Any suggestion?
Click to expand...
Click to collapse
After long research I found out there was a bug in my SSH server. Now the problem is solved.

Related

wifi tether on tattoo working

1) download pre8 version here:
http://code.google.com/p/android-wifi-tether/downloads/list
2) start the app the first time to create config files
3) than run:
/data/data/android.tether/bin/tether start 1
4) now open wifi tether app and check logs
Thanks! I will try it and then add it to my rom!
grande suoko !
thanks suoko
sorry, i'm newb..
what do you mean by
"run: /data/data/android.tether/bin/tether start 1" ?
kongkows said:
sorry, i'm newb..
what do you mean by
"run: /data/data/android.tether/bin/tether start 1" ?
Click to expand...
Click to collapse
there's a bug in the gui as always
you must run that command from terminal with root user
i use "better terminal emulator"
I cannot stop it and turn on wifi!!!
???
try "run: /data/data/android.tether/bin/tether stop 1"
Thank you for the method !
Tether Wifi works fine.
But I'm obliged to return the code ("/data/data/android.tether/bin/start tether 1) every time I restart my Tattoo.
It's normal?
Thank you for your help.
Sorry for my bad English, I'm french =p .
Sorry for noob question.
What is wifi tether?
Google is your friend ! =P
Wifi Tether allows use your phone as a router (modem).
Wifi Tether uses the 3G connection, and translates into wifi signal.
I don't know if it's clear, but I'm not very good in English and some words escaped me.
it's clear... i dont need this for now, but is very usable. thx.
I followed the steps but still cannot use tethering
My PC can connect to the Tattoo and get the IP from it, and that app alerted to be connected by a client, but the PC still cannot browse webpage
ww_boy6 said:
I followed the steps but still cannot use tethering
My PC can connect to the Tattoo and get the IP from it, and that app alerted to be connected by a client, but the PC still cannot browse webpage
Click to expand...
Click to collapse
Same here, I tried connecting through a netbook and a iPod Touch, both of them see and connect to the phone, but are unable to use internet.
Same problem
I am using Modaco R2. for HTC tattoo.
I installed wireless_tether_2_0-pre10.apk.
My laptop able to connect to Tattoo & give Ip address.
I tried to browse webpage... but it unable to go into internet.
BUT both, Tattoo & laptop showed that they are connected together!!!
Tattoo's access control even show my laptop's name correctly!
Using laptop command prompt, I tried to ping Default Gateway (192.169.2.100)
It showed 100% data LOST!!!.
What happen???
Download the latest apk (2.0.1), it works.
Hi Guys,
I have an HTC Tattoo and want to do wifi Tethering. My phone is not rooted yet and i cannot find instructions to do this (most of the instructions are for adding new roms). I do not want to add a new rom, i just want to tether my 3G connection by turning my phone into a wifi hub.
phiber123 said:
My phone is not rooted yet and i cannot find instructions to do this
Click to expand...
Click to collapse
Please search this forum before posting.
awesome, it's working.
Wifi Tethering start successfully, but when i try to connect to the network, Tattoo don't assign the ip to the PC and the connection failed.
Wich ip i've to use for gateway and dns? Wich subnet mask?
Thank you
I try to run without root access but not work.
Later on I root my Tatto and app start working with 1.6
Now not have WiFi card to try but when i get one i infform you about res.

Use PC internet connection on phone through USB!

USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Tried it and it's not working for me...
Or maybe i didn't setup squid right.
I'm not so good on ubuntu OS
I tried making a bridge connection on windows...the networks
The network seems to be connected but no internet connection...
Is it necessary to have Ubuntu OS?
Maybe some another how-to will help:
http://forum.xda-developers.com/showthread.php?t=793102
To setup squid to work:
type in:
sudo gedit /etc/squid/squid.conf
In that file find the section called
# ACCESS CONTROLS
Under the section find the line
#Recommended minimum configuration:
and add this line next to it
acl all src all
then find the section
# TAG: http_access
Under this section find the line
#Default:
and add the following line to look like
#Default:
http_access allow all
Close the file and restart squid as:
sudo start squid
That should setup squid to share your internet on all clients.
If required, reboot.
You can try out a similar approach on any other distro other than ubuntu.
i tried several searches about this topic, but none of them succeeded,
any update on this?
can i install ubuntu in my Win7?
syruz said:
can i install ubuntu in my Win7?
Click to expand...
Click to collapse
Well, you can virtualize it in Virtual box. It's free for personal use.
by the way what is the squid your talking about?
@ TS
maybe you can provide us with the link for ubuntu and squid?
Come on.. if you don't already know what ubuntu and squid are there's no point in trying this.
Ubuntu = Linux, that's another operating system. Squid is a proxy.
You ashould at least have the decency of Googling those for yourself..
Sent from my LG-P500 using XDA App
harshaxdadevelopers said:
USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Click to expand...
Click to collapse
Hi guys,
Do you know why I wouldn't be able to see "USB tethering" option? No matter what I did so far, all I can see is the "Portable Wi-Fi hotspot" option and that works fine. But I need to use the USB Tethering!!!
Thanks for the help!
If someone is having the same problem as me (ie usb tethering mode not visible) just use a program called togglesettings lite. It can turn on the usb tethering for you. Now the reverse usb tethering works for me like a charm. Peace!
Sent from my LG-P500 using XDA App
harshaxdadevelopers said:
USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Click to expand...
Click to collapse
Thank you for sharing this trick. But i dont have netcfg utility, since i use ubuntu maverick 10.10, it is not in source list. is ther any other way to do "netcfg usb0 dhcp"?
This is by far the easiest solution I've found to reverse tether. Thanks!
jadeiceman said:
This is by far the easiest solution I've found to reverse tether. Thanks!
Click to expand...
Click to collapse
Sorry and wich is the solution ????
syruz said:
@ TS
maybe you can provide us with the link for ubuntu and squid?
Click to expand...
Click to collapse
sudo apt-get install squid
This should install squid.
netcfg is not there on recent ubuntu versions not even software list but you can configure via app indicator at right but still i can't use reverse tethering although i followed you pretty well.
netcfg is a utlility on the phone... u need to run that command at the terminal of the phone not on your computer. (get a terminal emulator from the market)
Wow I'm feeling stupid.Will give it a go now.

[Q] Internet via ad-hoc

Hi people, i don't have wifi in my house so i tried to create a wifi acces point on my laptot but in my mini pro doesn't appear my wifi.
can anyone help me?
I use win xp and ubuntu 11.04
thanks and sorry for my bad english (i'm spanish)
dare i ask what your settings are, such as...
ssid; or if its set to even broadcast?
encryption or no encryption?
is ics on?
what band(s) are your broadcasting off your notebook b/g/n?(think the mini only has b/g)
are you broadcasting from like the attic down to the basement?
My wifi chip is Intel PRO/Wireless 3945ABG
The connection is shared and without encryption.
I used this tutorial: http://www.youtube.com/watch?v=ndYUkSdCQ3Q&feature=related
allc said:
My wifi chip is Intel PRO/Wireless 3945ABG
The connection is shared and without encryption.
I used this tutorial: http://www.youtube.com/watch?v=ndYUkSdCQ3Q&feature=related
Click to expand...
Click to collapse
anyways i'm not sure about all your settings but when i was running an adhoc network i defiantly did not have network authentication set to shared i had it set to open the video from what i could bare to watch also doesn't show you how to enable ics so google/youtube that for another 10 minute video if you need too :roflcopter:
Use connectify
connectify doesn't work. it says that is for win7
Ou! Sorry)))
Can I connect to inernet via usb? or bluetooth?
[Tutorial] How to share PC internet with the x10 mini...
allc said:
Hi people, i don't have wifi in my house so i tried to create a wifi acces point on my laptot but in my mini pro doesn't appear my wifi.
can anyone help me?
I use win xp and ubuntu 11.04
thanks and sorry for my bad english (i'm spanish)
Click to expand...
Click to collapse
Maybe you tried Creating Ad-Hoc. Android does not show adhoc networks. There is also a Workaround. Thanks to blackplatypus. Details at
http://www.xda-developers.com/android/android-ad-hoc-wireless-network-support/
Click to expand...
Click to collapse
. But it is not sure, if it will work or not.
So there is another way, Make your pc act as an Access point.
Easy Way: First (Did not work for me. )
Easy Way: Second (Have not tested it.)
Hard Way:
Not sure if it will work on XP.
1. Go to Start -> Run, Type services.msc
2. Find if you have the "Routing and Remote Access" [/B]
If it is ther then Procceed. But if you dont have it, You can not make a virtual Wifi Router.
3. Right Click on "Routing and Remote Access", Select Properties, Select Automatic from the Dropdown menu, click on OK. Then restart your PC.
4. After Restarting the PC, Copy and paste the code below in any text file and save it as “.bat” file.
Note: replace yourSSID with any SSID you like and yourKEY with any password you like.
Code:
netsh wlan set hostednetwork ssid=yourSSID key=YourKEY keyUsage=persistent
netsh wlan set hostednetwork mode=allow
netsh wlan start hostednetwork
Double click on it.
You can see an Extra Wireless Connection in your “Network Connections” folder.
5. Right Click on your main internet connection, go to Properties, select Sharing, Put tick on First box and select the extra Wireless Network Connection.
Done.
Now you can use internet through this.
allc said:
Can I connect to inernet via usb? or bluetooth?
Click to expand...
Click to collapse
See this thread:
http://forum.xda-developers.com/showthread.php?t=1196723
Click to expand...
Click to collapse
If you have any problem, Feel free to contact me.

[Q] SSHD on tab, not able to connect

Hi!
I have tried SSHDroid, QuickSSHD and also Dropbear directly from the command line with logging to STD_ERR, but I am not able to connect to my GalaxyTab 10.1. Using nmap from WinXP I see the port, but it is filtered:
PORT STATE SERVICE
22/tcp filtered ssh
Using netstat on the tab shows that the connection has begun, but it stops with syn_recv and never get established. Using DropBear with logging it seems like no traffic is passed on to the server as no new log appears at the connection moment (or later).
The problem occured after rooting the device and has been persistent even though I have changed back to stock ROM and manager. Now I am using "recovery-cwm_4.0.0.4-sam-tab-10.1.tar.md5" and "Task650&Phantom_V5_Final.zip".
Using netcat I am able to send traffic both ways on the same ports.
I would really appreciate any suggestions on how to solve this as I have I feel lost without SSH
BR,
Henrik
It works okay for me with stock rom, rooted and SSHDroid. Set the superuser to grant automatic root permissions. Launch the SSHDroid and set - require wifi and password to yes.Check the port and make sure its 22 in the SSHDroid settings. Then start the server, you should see a confirmation saying the process is listening in port 22. You would also see a prompt stating the SSHDroid has been granted SU permissions. LEt me know if this helps!
SOLVED
Thanks for suggestions mango1122! I have for sure tried all those things too many times already But I got a breakthrough today by using the Overcome ROM and kernel (see galaxytabhacks).
Using this ROM, SSHDroid worked out of the box. I have unfortunately no clue why this works, but what made me try this ROM was this comment:
"For Custom roms: Be aware, I’ve put the wifi module right in the ramdisk (which is where it is on 10.1 stock). Please move over the modules folder in /system/lib prior to flashing, if this applies to you."
BR,
Henrik
Solved...again...
Update...had to take a long break as it didn't work when I got home from work that day in Nov...it was my home router that caused the problem, I guess combined with something in the Dropbear/SSHDroid application for Android 3.0 as there is no problem using SSHDroid on my smartphone with Android 2.3.3 on the same router. I assume it has something to do with the fact that it listens on tcp6?
Using another router solved the problem.
BR,
Henrik

How to remote control android which is connected to same wifi without internet

I want to control my android device loaded with lineageos 8.1 remotely from my laptop from the browser. I have tried airdroid, but i am not able to use the remote control feature when i am offline, it only works over the internet, is there any fix for this? also please suggest any alternatives. I have root access using magisk.
motolora 1656565 said:
I want to control my android device loaded with lineageos 8.1 remotely from my laptop from the browser. I have tried airdroid, but i am not able to use the remote control feature when i am offline, it only works over the internet, is there any fix for this? also please suggest any alternatives. I have root access using magisk.
Click to expand...
Click to collapse
Definitely want to be using scrcpy. It uses adb as it's connection method. So if you can wifi adb to your devices you can remote control it.
If you need sound, it gets slightly more cumbersome. But sndcpy works well in tangent.
Astoras said:
So if you can wifi adb to your devices you can remote control it.
Click to expand...
Click to collapse
Please guide me how can I do this. I have enabled TCP/ip mode in developer menu.
motolora 1656565 said:
Please guide me how can I do this. I have enabled TCP/ip mode in developer menu.
Click to expand...
Click to collapse
Some phones have an option in Developer settings. It normally explicitly says wifi adb. If you don't have the option, you'll need a root app or elevated terminal to activate it.
The app is faster to use if in a normal context.
Find on on the playstore. Just search wifi adb.
Then on your computers terminal, which has adb installed properly, type "adb connect {your phone's ip address}"
Once it successfully prompts and you accept the connection on your phone you are ready to use scrcpy.
You can find tutorials on how to install both adb and scrcpy.
But the most user friendly, if on widows, is to first install a repository called Choco. Again, look up how to do so.
Then, simply type these commends in an administrative PowerShell:
choco install adb -y
choco install scrcpy -y
If all of this seems overly complicated. It is a one time setup. And all of these tools are excellent to have in the future if you are into Android and software.
After these steps are completed, rember you first have to establish an adb connection and then type scrcpy into your terminal.
Ok, Thanks a lot!!!!
motolora 1656565 said:
Ok, Thanks a lot!!!!
Click to expand...
Click to collapse
- Download scrcpy.zip
- Unzip to the dir of your choice
- On your phone: Developer settings --> Enable USB Debugging
- Connect with a cable
- Run scrcpy-noconsole.vbs
Should work (also for android 12)
If you want to use this over IP, let us know
biontx said:
- Download scrcpy.zip
- Unzip to the dir of your choice
- On your phone: Developer settings --> Enable USB Debugging
- Connect with a cable
- Run scrcpy-noconsole.vbs
Should work (also for android 12)
If you want to use this over IP, let us know
Click to expand...
Click to collapse
Oeps, the previous scrcpy.zip contains convctctytdl.exe ... you won't need this:
This is used to convert all youtube files (movie, list, etc...) to mp3
You can delete this file
This is the windows x64 version
You don't need internet as your phone is connected with a cable
Thank you everyone for your help!!!
Scrcpy is successfully installed and is working fine!!!
I took help from this forum and the official GitHub repo https://github.com/Genymobile/scrcpy
Thanks everyone
i have another request, please help!
capture mobile display as a "live video file"

Categories

Resources