Related
Have this working well and thought this info may help others...
First, your phone needs to be rooted and busybox properly installed. If you've rooted in the past few days, you're fine as the current payload-update.zip does install busybox with all of the links, but if you rooted early please confirm this before continuing.
Next, grab the tun.ko module from the OpenVPN thread.
Then follow the instructions for the Motorola Droid at the VPN Connections site, using the tun.ko you downloaded previously. The one caveat here is that you have to copy the module in recovery on the Incredible as we don't yet have rw access to the /system partition when booted normally.
Once you've restarted your phone after installing tun.ko, just install the latest VPN Connections apk and you're ready to go!
One point that confused me (for longer than I care to admit) is that once you create a VPN profile, you have to long-press on it to bring up the menu for connect/disconnect.
Enjoy!
Dave
which vpn connections. I downloaded latest from the store it opened but did not work.
then tried the latest from the site and it forces close. I'll start over tonight and try again.
-------------------------------------
Sent via the XDA Tapatalk App
I was working on this the other day, but I cannot get the phone to connect to my company's VPN - I setup the IPSEC ID/PW correctly as well as my user IP/PW, but I get an ISAKMP_N_AUTHENTICATION_FAILED. The one thing I didn't do was copy tun.ko in recovery mode - I just did a modprove /sdcard/tun.ko...it didn't complain and it seems like VPN Connections can find the device node without a problem.
On my linux box, I can run the same config options in vpnc and connect no problem...
I got it working after a couple days playing with it. My problem was that I had not installed busybox to xbin like their instructions outlined since it was already installed to sbin. once installed to xbin and proper permissions were granted, it worked like a charm.
Please someone post a complete how to. I cannot get this working. Busybox will not "--install" to xbin
Is there a secrete to getting busybox installed? I know this is weak sauce, but I need help.
Did you try installing busybox while in recovery mode?
where do I install busybox? /system/xbin or sbin?
Kulaa said:
where do I install busybox? /system/xbin or sbin?
Click to expand...
Click to collapse
I've got it in both places. It needs to be in xbin for the vpnc-script. I tried modifying the vpnc-script but running in to too many problems.
Those to configured their ASA
I am trying to setup the ASA for this VPN. Numerous vague (to me) unresolved errors. Phase 1 completes (easy).
Phase 2 Failure: Mismatched attribute types for class Encapsulation Mode: Rcv'd: Tunnel Cfg'd" Transport
Group = <group>, Username = <username>, IP = <IP Address>, All IPSec SA proposals found unacceptable!
" " Duplicate Phase 2 packet detected. No last packet to retransmit.
I am not finding the answers to these issues. I have not been working on VPNs for long but have setup A LOT of client (Any Connect & SSL) VPNs. I tried to "match" those configurations and have failed.
Anyone know of a tut they used to set the VPN up on the Firewall side? Im sure one of these guys I work w/ can set it up in mins but learning the hard way is what "they" prefer. < a week later is enough, I concede!
Bump ~ 10 ~
Bump ~ 10 ~
Console output?
It think I followed all the necessary steps but wanted to confirm somehow. Is there any ways to see the log on what VPN Connect is trying to do and why login fails?
supagene said:
It think I followed all the necessary steps but wanted to confirm somehow. Is there any ways to see the log on what VPN Connect is trying to do and why login fails?
Click to expand...
Click to collapse
./vpnc --debug 3 --script <path to script> --gateway <gatewayip> --id <VPN Group ID> --username <username>
johnnybags said:
./vpnc --debug 3 --script <path to script> --gateway <gatewayip> --id <VPN Group ID> --username <username>
Click to expand...
Click to collapse
./vpnc --script ./vpnc-script --gateway gateway.domain.com --id "Default Initial G
roup" --username supagene
Enter IPSec secret for Default Initial [email protected]: *******
Enter password for [email protected]: *******
uname: not found
basename: not found
grep: not found
which: not found
grep: not found
which: not found
grep: not found
which: not found
[: not found
readlink: not found
[: not found
[: not found
hash comparison failed: (ISAKMP_N_AUTHENTICATION_FAILED)(24)
check group password!
I know about the comment to check the group password, but I copy and pasted it so I know it is correct. Any suggestions? Do I copy the busy box from sbin to xbin or do I need to look for another busybox, where do you recommend me getting it form? Sorry for the noob questions.
Ok So I looked and found that the Procudures I followed for Rooting didn't actually copy busybox to xbin so maybe the first post should be updated to mention to check that xbin actually has busybox. I used the same busybox that was included in the rooting guide.
Now I'm at a different error.
Error binding to source port. Try '--local-port 0'
Failed to bind to 0.0.0.0:500: Address already in use
that's fine, it means you probably have another process of vpnc running that didn't terminate. just ad --local-port 0 to the end of your command line.
So how is your ASA configured? Is it the latest software or 8.2? ???
Kulaa said:
So how is your ASA configured? Is it the latest software or 8.2? ???
Click to expand...
Click to collapse
Not sure. I just know that the Admin can connect with his Cyanogen Modded G1 and it works great for him. He has his NAND fully unlocked of coarse.
Thanks for all the help I'll post my next issue tomorrow.
Following this thread that was linked for helping to get this working on the Incredible.
I'm getting a constant "unable to connect" error... Where do I need to enable logging to find out more about where the error is happening at? On my ASA or on the Incredible?
Thanks.
I've never got it working but if you look above you'll see how I ran this thin in adb shell. That will output everything to console and tell you what is wrong.
In short,
I want to be able to
1) have a shell script which will connect via wireless to my local linux server and sync a directory
2) call this shell script from an icon on my home screen
3) see the output in window that popped up
Is this possible?
http://digitizor.com/2010/03/24/how-to-sync-nexus-one-with-rythmbox-music-player/
Not sure if a similar method works with Amarok
To kick it off from your phone.. vnc into your machine and start the process.
btw...this is a question and should have gone to the Q/A section.
I had a set of scripts on my Zaurus pda some years ago that, when a connection to my home network was detected, would try a rsync with my rsync server. It allowed me to have a always updated backup of my data. I have to look it up, even if only to set it up as a script, without a nice interface... It looks like a nice way of backing up my photos as soon as I am on my home wifi network.
there is app called Fsync that can do that for you.
Been doing this for months. Here is how.
Install Ampache on your Linux box. www.ampache.org
Configure Ampache and make sure you password protect! Open ports on your router/firewall.
Install Amdroid or Lullaby from the Market on your Android. Both apps will connect to your ampache server. I have been using Lullaby and prefer it.
Connection over 3G has almost no delay between songs and works well in the car
Thanks to both of you guys, but...
I don't know if that is will be enough for what the OP had in mind, but I wasn't talking about music/video streaming, I was talking of configurable automatic sync of directories, so ampache doesn't help me. Also, Fsync seems to need a ftp server, and all I need is a rsync server. I don't want to go around configuring ftp shares, etc, when rsync is way more suited to keeping two (or more) directories in sync.
I found out what I used on the zaurus: zNetBackup. Now is time to look at the sources, and if android runs scripts when setting up interfaces...
ruineraz said:
In short,
I want to be able to
1) have a shell script which will connect via wireless to my local linux server and sync a directory
2) call this shell script from an icon on my home screen
3) see the output in window that popped up
Is this possible?
Click to expand...
Click to collapse
You should already have everything you need, which is just rsync on the phone and ssh on the Linux box. Just run ssh on the box, set up keys, then figure out your rsync command and run it from GScript on the phone. GScript allows you to create a shortcut to a command or script on your home screen.
I use this general ssh/scp command to recursively transfer a directory to my sdcard all the time. Should be easy to adjust for rsync.
scp -i /path/to/keyfile -P port_number -r [email protected]:/path/to/directory /sdcard
fubaya said:
You should already have everything you need, which is just rsync on the phone and ssh on the Linux box. Just run ssh on the box, set up keys, then figure out your rsync command and run it from GScript on the phone. GScript allows you to create a shortcut to a command or script on your home screen.
I use this general ssh/scp command to recursively transfer a directory to my sdcard all the time. Should be easy to adjust for rsync.
scp -i /path/to/keyfile -P port_number -r [email protected]:/path/to/directory /sdcard
Click to expand...
Click to collapse
Thanks. Just can't seem to get ssh keys set up... dunno where to put them (don't seem to be .ssh folder anywhere)
ruineraz said:
Thanks. Just can't seem to get ssh keys set up... dunno where to put them (don't seem to be .ssh folder anywhere)
Click to expand...
Click to collapse
Good point. You can put the key anywhere, but you need a .ssh directory for the known_hosts file. It should be simple on a Linux based device, but... it's not really.
There is a Cyanogen wiki page about setting up ssh using dropbear, and you can probably get rsync working in a terminal with that.
However, trying to ssh with the normal ssh binary using GScript (to launch the script from home screen) gave me "Unknown own user" errors. To fix it, I replaced the ssh binary (maybe it was a link to busybox or dropbear, I dunno) with a link to the ssh binary from Better Terminal Emulator Pro. I've been doing that through several roms over the past few months and the BTEP ssh always works flawlessly. I run this every time I install a new rom:
rm /system/xbin/ssh
ln -s /data/data/com.magicandroidapps.bettertermpro/bin/ssh /system/xbin/ssh
I checked, and BTEP creates it's own home and .ssh directories at /data/data/com.magicandroidapps.bettertermpro/home/.ssh and the ssh command uses the known_hosts file from there, so basically, BTEP might be the best way to do all this but it costs a few bucks in the market.
This inspired me to start using rsync and I did successfully get it working with the below command:
Code:
rsync -rltDv -e "ssh -l USER -i /data/dropbear/dropbear_rsa_host_key -p XXXXX" --port=XXXXX [email protected]:/home/me/test /sdcard
rltDv is used to get around an rsync bug that gives chgrp errors. The -e command specifies the ssh command to use when connecting and I had to specify the user with "-l username", -i is the key to use which can be anywhere. You don't need the ssh option "-p XXXXX" unless you use something other than 22 for ssh. The same is probably true of the rsync --port=X option, but I didn't test it.
This worked successfully with GScript which is exactly what you're wanting. Here's the only downside.. Better Terminal Emulator Pro costs a few bucks so I don't know if it's worth it to you to get it for a replacement ssh binary that works with GScript.
EDIT: it's 2am and im half asleep so i hope all this makes sense. Can clarify tomorrow if needed
Thanks for the update, just got some time to pick this back up
sent from my nexus one from the future...
http://forum.xda-developers.com/showthread.php?p=8917482&highlight=rsync#post8917482
I've searched, looked, read...about having SSHd and / or DropBear running on Android.
Question is, how come there's no Free SSHd / DropBear package out there on the market (the one that's already on the market is not free)?
Anyone? Is it because it's a potential security risk having someone else compile SSHd for you...and you not knowing what's exactly in the code? Is this why everyone seem to do it themselves and patch up dropbear for Android?
Chatbox said:
I've searched, looked, read...about having SSHd and / or DropBear running on Android.
Question is, how come there's no Free SSHd / DropBear package out there on the market (the one that's already on the market is not free)?
Anyone? Is it because it's a potential security risk having someone else compile SSHd for you...and you not knowing what's exactly in the code? Is this why everyone seem to do it themselves and patch up dropbear for Android?
Click to expand...
Click to collapse
Because you don't need sshd when you already have adb?
carlocb said:
Because you don't need sshd when you already have adb?
Click to expand...
Click to collapse
Can I connect to the phone using ADB via wifi?
Chatbox said:
Can I connect to the phone using ADB via wifi?
Click to expand...
Click to collapse
http://www.appbrain.com/app/siir.es.adbWireless
Chatbox said:
Can I connect to the phone using ADB via wifi?
Click to expand...
Click to collapse
lol... ex iphone user?
SWEET! Thank you! That's amazing!
Nah, ex N900 user. Before that, I was using the HTC Magic, and before that it was E71... Not a fan of iPhone...but I do use the iPod Touch...
carlocb said:
Because you don't need sshd when you already have adb?
Click to expand...
Click to collapse
SSH is Secure Shell service, means it uses encryption. adb is more comparable with telnet btw. and still adb needs android-sdk.
here is a thread for dropbear. http://forum.xda-developers.com/showthread.php?t=442754&page=10
And with SSHd you can open a reverse tunnel over Edge/3G and connect to your phone without the need for WiFi or a USB cable. I don't have WiFi at home so this is invaluable to me.
On the phone -
ssh -R 2222:localhost:22 [email protected]
now I can connect directly to the phone from my home computer (myhost.dyndns.org) -
ssh -p 2222 [email protected]
or copy files to /sdcard -
scp -P 2222 /home/user/mp3/* [email protected]:/sdcard/
Can you do that with adb?
Hi guys I need to some help with trying to create a custom launcher for my Linux box.
I have a script that launches XBMC in fullscreen and locked to a specific display. What I want is to have a shortcut created on my android device to login via SSH and execute that XBMC script.
So I need 2 things:
1- an app or some way of creating ssh rsa keys on my android device (so I can login to ssh without password prompt)
2- help with creating the shortcut / command to login to my Linux box via ssh and excute the script (I think I can do this with Tasker > shortcuts)
Any help would be greatly appreciated
I shall reply to my own problem with a fix.
App called Remote Launcher. So damn good! Also ties in with Tasker for full automation
Sent from my Vega using XDA
Hey guys, I recently got the RAZR i and it's been working great. I was worried about compatibility issues, but haven't ran into any other than the obvious lack of Flash. However, I have an issue relating to SSH. Neither DropBear nor SSHDroid seem to work. Whenever I run SSHDroid and click start, the screen gets a pop up for a microsecond and the server stops. In the log it says:
Code:
INFO: Cannot generate RSA key: link_image[1936]: 9213 could not load needed library 'liblog.so' for '/data/data/berserker.android.apps.sshdroid/dropbear/dropbearkey' (reloc_library[1453]: 9213 unknown reloc type 7 @ 0x403a4ba4 (0))CANNOT LINK EXECUTABLE
I tried SSHDroid before rooting the device, and then rooted it and tried again. The same error occurred.
As for using DropBearSSH to launch the server, it says that it's launched and running fine, but I cannot connect to it from within the same wifi network. I tried using ConnectBot with localhost as address, and that didn't work either. I'm at a loss of what to do. Has anybody else had issues with SSH?
All these are built for ARM, and they might not really run on x86 arch (which the Razr I is)
hiemanshu said:
All these are built for ARM, and they might not really run on x86 arch (which the Razr I is)
Click to expand...
Click to collapse
Ok.
But does anyone knows if are there some app like them to run SSH Server on android x86 (razr i)?
Just to update this thread, since last week berzerker_devel published his beta version of SSHDroid, now runs over x86 device. Its working on my Razr i right now.
See at: http://forum.xda-developers.com/showthread.php?t=921801
You can also have a look at Servers Ultimate which contains an rather complete SSH Server. The ssh server itself works on all devices and architectures and the command line works on ARM and x86.
On Play: Servers Ultimate
On XDA: Servers Ultimate