SSH Library after Mango Release - Windows Phone 7 Q&A, Help & Troubleshooting

Hey,
i'm looking for a library containing ssh. Searched for a while but i've only found topics before the mango release.
I know that the socket class is crippled in mango but i hope there is someone who succeded in porting a existing library or creating a new one, which works for mango.
I'm trying to make an ssh app. The existing ones all seem to just forward the commands to a main server which then establishes the ssh connection via a script or something else, running on that server.
I would like to do that without the way via a main server so I hope someone can help me.
If there is no possibility of establishing an ssh connection with the available socket class in mango, I would be happy about all hints for doing this with the help of a server like the other ones seem to do it.
I hope you've got some hints for me.
Ben
Sent from my GT-I9100 using XDA App

Where'd you get the idea that they're doing that forwarding from? You have to implement the SSL yourself (Mango public sockets don't have a public SSL implementation) but you can definitely do SSH. "The SSH Client" is the forst I know of that uses Mango sockets and seems to work fine. When I connect it to my home PC and check the network traffic, it's coming directly from the phone.

Hey,
I read several threads where people achieved ssh without the sockets from mango with a external main server. But these threads are all more than a half year old.
But like you said there is a possibility with the new sockets. That sounds good. I will see what I can find on that topic, concerning the implementation of the ssl protocol.
Do you have any hints or resources for me?
Sent from my GT-I9100 using XDA App

If you search for ".NET SSL" or ".NET SSH" you'll probably find some source code you can use (check the licensing, of course). Again, though - why bother? There are apps, even free ones, that already provide direct SSH client function on the phone.

It's just for a class at university We have to make a couple of different apps.
It hasn't be too complicated. Simply SSH in my case and adding some features, depending on the time, which is left after implementing the core function.
I've got 2 weeks.
Thanks for your help, i'll go for it and will see what i get.

Related

Apache + php + mysql running on Windows Mobile?

Hi!
Is there a way that Apache + mysql + php could run on Windows Mobile?
I've searched the forums but I haven't found anything useful.
Thanks.
Not that I've seen. Care to enlighten us with a possible reason you need a webserver in a phone ?
Well... it would be useful in some scenarios
Id put 50euro in for someone to get them working. Means a lot of my Web Apps could work off like and then I just have sync page to save on roaming chargess.
maybe something like this,
but it only support SQLite3 and a subset of all php functions.
http://mobileleap.net/hph/
I remember way back being able to run apache at least.
http://www.rainer-keuchel.de/wince/apache-ce.html
There was also a version of asp http://www.modezero.net/PocketASP/
snachez said:
Not that I've seen. Care to enlighten us with a possible reason you need a webserver in a phone ?
Click to expand...
Click to collapse
Do folks really need a reason why?
I think the answer is, 'cause it would be cool!
Having the ability to test database queries
would be great for students like me.
Imagine while in the bus, or train, or waiting at the doctors and having the ability to create tables and all!
Answer...
Here is your answer..
apache II v1.0 on mobile phones http://www.google.de/search?hl=de&q=apache+on+windows+mobile&btnG=Suche&meta=&aq=f&oq=
apache php mysql would be great to have an always accessible mediawiki as described in my comments here :
http://carrypad.com/2010/02/22/airlife-100-thoughts-6-days-online-battery-and-pricing/#comments
PocketHTML;
http://www.isquaredsoftware.com/pockethtml.php
or
http://www.freewarepocketpc.net/ppc-download-hyperedit.html
For on the fly html edits.
And here an introduction to ASP.NET Mobile;
http://www.geekpedia.com/tutorial120_Introduction-to-ASP.NET-Mobile.html
Have fun,
Senax
How are you going to access the applications deployed on the web server in your phone? I dont think there is a way to get static IP for phones. This is a strange thread.
I was thinking something like bluetooth PAN, Celio Redfly or the phone itself.
But also I am thinking the wiki should be mirrored on the web so that the access to the wiki is not dependent on the 3G connexion. Seems to be doable with mysql, at least from the phone mysql db to the webserver mysql db. I guess I'd need sthg to mirror data from the webserver to the phone, maybe OpenVPN or sthg else with mysql I don't know ...
Use 2D barcodes on your webpage to obtain applications easily via
(Use your phone) http://www.i-nigma.mobi/ 2D Barcode Reader
VPN Mobile;
http://www.pocketpcfreeware.mobi/download-vpn-mobile.html
Total Commander (free for smartphones/PocketPC/handhelds) has inbuild FTP.

VPN client?

Hi,
Not sure if anyone is working on a VPN client for Android, but I think this is something a lot of people would find useful. Not sure if it is even possible to do solely from the app layer, but for folks who have rooted phones, I would think that if you can run a VPN client on linux, you should be able to run one on Android, no?
Has there been any work on this? Any thoughts on this?
Thanks
I'd love to see one. I'd be able to use it for work which would be awesome.
OpenVPN already exists
http://forum.xda-developers.com/showthread.php?t=447230&highlight=openvpn
but that is not userspace. The problem with userspace applications is that without root there is no way to add the proper routes to force traffic over the vpn.
Of course, with root you could probably write a graphical frontend to something like OpenVPN.
Geezzzz guys this is the last thing I needed. If my employer catches wind that I can run openvpn from my phone and connect in to the office network; I will never ever get any me time outside of the office. Its nice being able to claim that I am not able to find a internet connection to help do x,y,z or troubleshoot why idiot A cannot send email to idiot B.
I see that there's been a little development here:
There's a commercial product (http://mocana.com/NanoPhone-Android.html) and there's an open-source project (http://code.google.com/p/android-vpnc/), but that one sounds a little scary.
I do have a rooted phone (RC33/JF1.41). I'm wondering if someone could simply compile vpnc and the necessary libraries for the G1. Is it more complicated than that?
So how hard would it be to get vpn setup via openvpn on a rooted phone? (for someone who's not a dev, but isn't afraid to tinker)

Remote desktop software

Hey guys, Does anyone know if there's any decent FREE apps for the android that i can use for remote assistance? i work in IT and this would be very useful to me but im not willing to fork out cash just yet.
I know you can use VNC but this means installing software on client machines and setting that software upm which is no use to me.
thanks in advance guys
I have tried most and there are no good free RDC clients. (I started to write one myself but it was not very fun so I abandoned it.)
I would suggest biting the bullet and buying xtralogic's Remote Desktop client. At $19.95 it is the most expensive option but the controls on it are the best IMHO.
If you want cheaper ($7.98) there is Remote RDP by Walter Yongtao Wang but i find the controls are not as intuitive.
I know you said you do not want to fork out cash yet but the reality is if you want a good RDC client then for now you are going to have to pay for it. In the grand scheme of things $20 is a minor investment for the aggravation saved.
PhoneMyPC is the best one I've tried and I've played with almost all of them. Multitouch zooming makes it closest to what logmein ignition is on the iPhone. I think until logmein comes out with an Android app, it's the best bet even though it costs a few dollars.
yeah , i also use PhoneMyPC , works great , no problems
I have to agree. PhoneMyPC is extremely (surprizingly) fast and worked better than the RDP or VNC solutions from my testing.
I was very skeptical that it could perform well, but... call me a believer now.
Thanks for the answers guys, I'll try PhoneMyPc out first.
One more question, I would also like to Wake computers via LAN, Do these software's have the ability to send the "magic" WOL packets to wake a system up?
This is another feature i would find extremely useful.
Clearly my brain was not working last night. I misread what you were asking for. PhoneMyPC is nice but requires a client install.
If your goal is end client support and you do not want to require them to install an application you might consider UltraVNC single click for the client ( http://www.uvnc.com/addons/singleclick.html )+ a VNC viewer on android. While it will not perform as well as PhoneMyPC it has the benefit of being a zero foot print solution and works well in situations where the client may not want/be able to install applications on their system. I keep a build on my website and if a situation pops up that requires me to access the end user's machine have them download and run it.
Your request for WOL is a bit confusing though, which implies you are not going for end user support. What are you looking for:
- a solution to connect to your personal machine running in the same subnet as your phone
- a solution to connect to your personal machine from wherever you may be at
- a solution to connect to remote end users machines with a pre-installed application
- a solution to connect to remote end users machines without a pre-installed application
- something else.
WOL can be triggered remotely (with preparation) but regardless requires the machine to be set up properly and that you know the MAC address in advance, not likely in a remote end user scenario.
Does anyone know where can I get the PhoneMyPC installation file for the phone? I couldn't find any download link on their site.
On the market. search for "phonemypc". It is a commercial app (9.99 USD) so that is pretty much your only way to get it.
Trust me on this one, go with Remote Desktop Client from xtralogic.. I've been using it for nearly a year.. its the best RDP you will find, no client install needed.
PhoneMyPC is the BEST!
Wait... we're biased ;-)
I suspect the user base here is savvy enough to know much of this, but a few details for anybody who's interested.
PhoneMyPC uses a technology similar to VNC, but it's custom and generally performs better. It is a bandwidth-limited approach to remoting, and we chose this because (a) we wanted something that made no compromises on visual quality (no missing desktop wallpapers, no changed settings, no missing themes), and we see the trend in available bandwidth going steadily up for the forseeable future. This makes PhoneMyPC a good option for remote video, for example, because it is optimized for pictoral data rather than vector data.
RDP, on the other hand, is optimized for vector data, so typically consumed less bandwidth than PhoneMyPC, but much more CPU resources. It also has the advantage that it is built in to all Professional and Server Windows versions.
The biggest difference between the two however is how they handle the network. With RDP you must know and configure your IP, and you must update it when it changes (or use a DynDNS type solution). You must also know how to configure your router and other security mechanisms for port forwarding.
PhoneMyPC just works, because it uses our servers as a connection point between your phone and PC(s). You don't need to know your IP, or worry if it changes, becuase the PC will actually tell the phone what it's IP is every time you connect. You can use port forwarding to get a better, direct connection, but it is not required for the software to work.
Finally, RDP is a long-lasting, well established (and more or less un-changing) technology; that is an advantage from some perspectives. But if you compare what users are saying PhoneMyPC is at least as good, and it's new, still growing, always getting better, and we're not even close to done yet. That too is an advantage from some perspectives.
SoftwareForMe.com
Makers of PhoneMyPC
I've bought all of them, and I could never get Phone My PC to connect. RDC by xtralogic, Remote VNC Pro Android VNC work great (used with TightVNC).
EDIT: Any suggestions Softwareforme? Also constant f/c's when connected via wifi on N1.

[Q] New Remote Desktop App

I tried to test out the new Remote Desktop application in the marketplace. There weren't any reviews so I download the trial. It wouldn't connect to any my computers, and ended up throwing an exception then running out of time on the trial.
Anyone else have better luck? I really want an app that works with Windows' RDP without having to install any other software. It would be awesome to get Jaadu or something with that quality on WP7. I've used it on iOS and its a fantastic client.
Hey I just tried it out, but im not sure what the hell I am doing and what developer doesn't include a "How to" in the app?
Any knows how to use this windows 7 feature? I do have w7 pro...
I got the app to connect to my Windows 7 desktop at home so it does work.
I don't know how this app works exactly but there's no way it's doing a direct connection to your workstation or server because the WP7 SDK doesn't support sockets. It must be going through a proxy of some sort which may be a security concern.
The real RDP clients will come when Mango is released and sockets are supported. Until then there will only be proxy based clients found on the marketplace.
If you are desperate for a RDP client this one seems to work ok.
The first real RDP app!
I tried the app yesterday. It worked perfectly at the first try. I really need such an app.
Sadly after purchasing it, it did not work at all. But surprisingly sometime later it was alright again. According to the exceptions that were thrown it has to do with the proxy-server that tunnels the tcp requests over http.
The server seems to be a bit unstable but I guess they will improve it sooner or later.
So I think if you need a real RDP client for now just use it – it’s really working well as long as the proxy is up! It is definitely the best and fastest one on the marketplace. Of course under a security-point of view an app that connects directly would be much nicer (I think they will change it as soon as mango it out). On the other hand if it would connect directly how could you now that it is not also sending your passwords elsewhere (if you are not going to sniff the network traffic…)?
There are only some minor things which could be better:
- Ask for permission to run under lock only once - not on every startup!
- Pinch to zoom to be able to click with more precision.
- Better behavior for text-input. I sometimes can´t see what I´m typing.
But for a v1 version thumbs up from me!
waiting for real rdp protocol, that can be done only with socket support...

Hamachi alternative for WinRT

Is there any alternative to Hamachi for WinRT (with the WinRT device being the client)..
Because RT doesn't run x86 apps, I need to VPN into a machine that sits behind a firewall with no port forwarding for RDP (remote desktop).
Therefore I want to run some VPN server on the machine so that the Surface RT can connect to the local LAN over the internet for an RDP session.
RT has the standard Windows VPN capabilities built in, I think (haven't actually tried). Third-party VPNs aren't supported without jailbreak, and won't be until Microsoft officially makes it available; WinRT apps simply do not have the permissions to create a network interface or re-route traffic (remember the days when Android VPN apps needed to be run as root? That's basically where RT still is).
Out of curiosity, if you can't forward the RDP port, why do you expect you'd be able to hit a VPN server behind the firewall? If it's just a matter of them specifically blocking port 3389, you can change the port that Terminal Services (RDP server) listens on in the registry.
You could try teamviewer, they can route the traffic through their servers so you don't need to forward a port to your pc in a firewall
hberntsen said:
You could try teamviewer, they can route the traffic through their servers so you don't need to forward a port to your pc in a firewall
Click to expand...
Click to collapse
I am planning to try that but was hoping there was also a service like Hamachi available ...
GoodDayToDie said:
RT has the standard Windows VPN capabilities built in, I think (haven't actually tried). Third-party VPNs aren't supported without jailbreak, and won't be until Microsoft officially makes it available; WinRT apps simply do not have the permissions to create a network interface or re-route traffic (remember the days when Android VPN apps needed to be run as root? That's basically where RT still is).
Click to expand...
Click to collapse
GoodDayToDie said:
Out of curiosity, if you can't forward the RDP port, why do you expect you'd be able to hit a VPN server behind the firewall? If it's just a matter of them specifically blocking port 3389, you can change the port that Terminal Services (RDP server) listens on in the registry.
Click to expand...
Click to collapse
Look up Hamachi and reread my OP
Fair point. You're not actually VPNing *into* your machine, but into a Hamachi-operated central management server. That has... interesting... security implications, but I suppose it does provide convenience (it would also be an immediate termination offense anywhere I've worked that had a firewall configuration like you describe, but that's your problem, not mine). Why can't you set up port forwarding in the firewall? Also, you did expressly state "Therefore I want to run some VPN server on the machine" where "the machine" presumably means the one behind the firewall...
The only time I've tried using Hamachi before was for "LAN" gaming over the 'net, which I decided not to do after looking at how it worked. That was long enough ago I'd forgotten the details of how it worked.
My first post still stands. There are at least two things Hamachi (or similar) would need to do that are impossible for a WinRT app (or for any software on RT without a jailbreak, really): create a network interface (we haven't even managed that *with* jailbreak, because except in the case of the semi-official driver from Pluggable we don't have any NDIS6 driver we can compile for ARM) and control a network interface from an app (there are possibly some rather hacky ways this could be done, but nothing we have right now).
Good Thank you:fingers-crossed:
Maybe someone will port Zerotier? It's too complicated for me, please help me make my life little easier

Categories

Resources