Notices


Reply
Thread Tools
Posts: 10 | Thanked: 0 times | Joined on Feb 2010 @ Dublin, Ireland
#121
The tunnel should now be configured. You can start the tunnel from X Terminal by running "ssh pc.dyndns.org". You should be prompted for the pass phrase, then presented with the C:\ prompt. You can now run the VNC client, connecting to "127.0.0.1:0". To shut down the tunnel, simply type "exit" at the C:\ prompt.

All is working fine however - Any idea on how to get the prompt back on the x terminal?

It gets me to C:Users\pacmanster\Desktop but I cant get control of the prompt. No biggy but it would be nice to be able to have control of the PC via X Terminal. Any ideas?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#122
Originally Posted by pacmanster View Post
The tunnel should now be configured. You can start the tunnel from X Terminal by running "ssh pc.dyndns.org". You should be prompted for the pass phrase, then presented with the C:\ prompt. You can now run the VNC client, connecting to "127.0.0.1:0". To shut down the tunnel, simply type "exit" at the C:\ prompt.

All is working fine however - Any idea on how to get the prompt back on the x terminal?

It gets me to C:Users\pacmanster\Desktop but I cant get control of the prompt. No biggy but it would be nice to be able to have control of the PC via X Terminal. Any ideas?
If you're using the new console engine then you should have control of the prompt. Unfortunately there's some issue with the console settings which mean the PC prompt doesn't correctly clear the screen (and may have other display issues). The old console engine doesn't seem to allow any control of the prompt (though doesn't appear to suffer from the same display issues).

You could also try a different ssh server - I'll have a look through what else is out there and see whether there's any suitable alternatives.
 
Kriek's Avatar
Posts: 105 | Thanked: 92 times | Joined on Mar 2010
#123
Originally Posted by Rob1n View Post
On the N900:[INDENT]From X Terminal, run "ssh-keygen -b 2048 -t rsa" to generate a public/private key pair.
This is where I got derailed because the process first asks to save the output to a file before choosing a pass phrase. I entered my own file name. The output files defaulted to /home/user.

Originally Posted by Rob1n View Post
Copy and rename the public key from the N900 (/home/user/.ssh/id_rsa.pub) to C:\Program Files\freeSSHd\fred on the PC (the same name as you used for the user you created earlier, with no file extension).
A matching user-name folder must be created in C:\Program Files\freeSSHd\ - as I understand.

Originally Posted by Rob1n View Post
On the N900:[INDENT]Create a configuration file /home/user/.ssh/config
What's totally unclear is why I don't have a .ssh folder in /home/user!? In CuteExplorer I do a "show hidden files" and .ssh is nowhere to be found. Am I missing a step somewhere?
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#124
Originally Posted by Kriek View Post
This is where I got derailed because the process first asks to save the output to a file before choosing a pass phrase. I entered my own file name. The output files defaulted to /home/user.
Yes, you can specify your own name if you like.

Originally Posted by Kriek View Post
A matching user-name folder must be created in C:\Program Files\freeSSHd\ - as I understand.
You shouldn't need to create a folder. Just place the public key in the C:\Program Files\freeSSHd directory, and rename it to match the user-name.

Originally Posted by Kriek View Post
What's totally unclear is why I don't have a .ssh folder in /home/user!? In CuteExplorer I do a "show hidden files" and .ssh is nowhere to be found. Am I missing a step somewhere?
That's because you specified your own file name earlier. The default is to write the keys to /home/user/.ssh/id_rsa (and id_rsa.pub), creating the /home/user/.ssh folder automatically. You'll need to create it yourself, and make sure it's owned by the user account, and has permission of 0700 (read-writable by the user, but not by anybody else).
 

The Following User Says Thank You to Rob1n For This Useful Post:
Kriek's Avatar
Posts: 105 | Thanked: 92 times | Joined on Mar 2010
#125
Originally Posted by Rob1n View Post
You'll need to create it yourself, and make sure it's owned by the user account, and has permission of 0700 (read-writable by the user, but not by anybody else).
I used the code from the "Extra security AND convenience" section of the SSH Wiki. Worked fine...

I'm fairly confident that everything is configured accordingly and named properly. When running the SSH command I was getting connection timeouts on Port 522. Then switched everything to Port 22 with the same results. In both instances I noticed that the N900 was making only two short data connections before a delayed period then timing out. Ping was keeping the data connection alive, but not returning any results in a timely fashion.

I started getting variable results as root whereupon a PC reboot changed freeSSHd behavior. Now when trying to start the server I get an "Error: The specified address is already in use". Nothing has changed...

Aside from my new server/address problem - I'm not 100% that my service provider has either ports open. They're notorious port-blockers, but claim to have port 22 in the clear.

Anyhow, I'm back to the real world and out of time for the moment, but until I can revisit this again, I'd like to say thanks to Rob1n for the support - I've learned a tonne in just a day.

Now if only CuteExplorer could have the functionality of GPE File Manager...
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#126
Originally Posted by Kriek View Post
I started getting variable results as root whereupon a PC reboot changed freeSSHd behavior. Now when trying to start the server I get an "Error: The specified address is already in use". Nothing has changed...
Are you sure the server isn't already running? It may have set itself up as a system service, so auto-started at boot. Check the system tray for a freeSSHDService icon.
 
Kriek's Avatar
Posts: 105 | Thanked: 92 times | Joined on Mar 2010
#127
Originally Posted by Rob1n View Post
Are you sure the server isn't already running? It may have set itself up as a system service, so auto-started at boot. Check the system tray for a freeSSHDService icon.
Yes, I checked the Task Manager and found it running as a System Service, however no icon in the tray, hence I had it running twice.

So back to making a SSH connection - I seem to be getting the same results whether as root or user. The new console engine check box in freeSSHd doesn't seem to make a difference. I make a brief data connection with a prolonged delay. Ping holds the data connection open, however nothing is returned for minutes.

More later...

Last edited by Kriek; 2010-06-15 at 16:55. Reason: Terminology consistency.
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#128
Originally Posted by Kriek View Post
Yes, I checked the Task Manager and found it running as a System Service, however no icon in the tray, hence I had it running twice.

So back to making a SSH connection - I seem to be getting the same results whether as root or user. The new console engine check box in freeSSHd doesn't seem to make a difference. I make a brief network connection with a prolonged delay. Ping holds the newtork connection open, however nothing returned for minutes.

More later...
Which OS is this on? I'll probably have a chance to do some testing with Windows 7 shortly.
 
Kriek's Avatar
Posts: 105 | Thanked: 92 times | Joined on Mar 2010
#129
Originally Posted by Rob1n View Post
Which OS is this on? I'll probably have a chance to do some testing with Windows 7 shortly.
Windows Vista 64-bit so freeSSHd is running in (x86)...

I'm soon going to try a few other ports known to be open on my provider's network to rule them out of the equation.
 
Kriek's Avatar
Posts: 105 | Thanked: 92 times | Joined on Mar 2010
#130
This is pretty cool!

Finally got it running after much thought. It was mostly a networking issue on my part...

However, after getting that all sorted I was receiving a publickey error. Like pacmanster, I simply unloaded and re-loaded freeSSHd and that solved the problem. The New Console Engine is fine with Vista-64.

RealVNC Server needed some tweaking. Encryption: "Prefer off" must be selected as well as Expert - LocalHost: True (as previously noted).

Thanks so much Rob1n! Now I feel like I'm actually using my N900! Next... to get set up with secured FTP...

Last edited by Kriek; 2010-06-19 at 17:22.
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:28.