Notices


Reply
Thread Tools
Posts: 145 | Thanked: 303 times | Joined on Jan 2010 @ Milton Keynes, UK
#31
Originally Posted by Rob1n View Post
The only other thing I can suggest then is installing the openssh client (http://sshwindows.sourceforge.net/) on another PC on the network, with the same private key (/home/user/.ssh/id_rsa) and config as you have on the N900 and seeing whether that works over the local LAN. That'll at least rule out the server from the equation.
Hi Rob1n,

You must be bored of this by now

I Just tried that, although I used Putty instead of openssh client. I manged to connect and VNC no problems, this was using the same ADSL connection and wifi router.

(I used an eeepc instead of my N900 but everythng else remained the same)

So this means it must be some issue on my N900
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#32
Originally Posted by jamiefuller View Post
So this means it must be some issue on my N900
Well, at least you've narrowed it down

The ssh connection is obviously working okay, so the problem lies in getting the tunnel to work. Can you try running ssh on the N900 with extra logging:
Code:
ssh -vvv pc.dyndns.org 2> ssh.log
That should capture the logs to file. Then see whether there's anything useful reported after you try to make the VNC connection.
 

The Following User Says Thank You to Rob1n For This Useful Post:
Posts: 145 | Thanked: 303 times | Joined on Jan 2010 @ Milton Keynes, UK
#33
Rob1n, I am soooo embarrased, lol

I just went and installed a new router, and that didn't make any difference either, I was just about to give in and I thought I would double check my config file again.

Lo and behold, what should have been 127.0.0.1:5900 actually read 127.0.0.0:5900, arrrrgh, what a stupid mistake to make. I've entered the IP for localhost a million times, how the heck did I get that wrong

Well, I changed that and it works first time everytime

So many thanks for all your efforts, and my apologies for the galactic waste of time

I can only hope my embarrassment helps someone else with this issue though
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#34
Hehe, glad you've got it working anyway
 

The Following User Says Thank You to Rob1n For This Useful Post:
Posts: 254 | Thanked: 17 times | Joined on Dec 2009
#35
Originally Posted by Rob1n View Post

On the N900:
Create a configuration file /home/user/.ssh/config (to simplify the connection strings):
Host pc.dyndns.org
IdentitiesOnly yes
PasswordAuthentication no
User fred
Port 522
LocalForward localhost:5900 127.0.0.1:5900
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.

i really am not liking to bug u now and then...
bt i just cant do it without you.
ive done till what ive removed above.
now:
--how to create config file?
--the *.pub file was in my /home/user/ and not /home/user/.ssh
so whre should i create a config file /home/user/config/ or home/user/.ssh/config?


thnks a ton in advance!
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#36
Originally Posted by somekeystrokes View Post
i really am not liking to bug u now and then...
bt i just cant do it without you.
ive done till what ive removed above.
now:
--how to create config file?
--the *.pub file was in my /home/user/ and not /home/user/.ssh
so whre should i create a config file /home/user/config/ or home/user/.ssh/config?
You can either create the config file on your PC and copy it over, or create it on the N900 using a text editor (leafpad is probably the easiest).

The id_rsa and id_rsa.pub files default to being created in /home/user/.ssh - did you specifically put in a different filename/path when creating them? Anyway, the id_rsa file needs to go in the /home/user/.ssh directory (it doesn't really matter where the id_rsa.pub file goes as that's not used on the N900), as does the config file.
 
Posts: 254 | Thanked: 17 times | Joined on Dec 2009
#37
just paste
Host pc.dyndns.org
IdentitiesOnly yes
PasswordAuthentication no
User fred
Port 522
LocalForward localhost:5900 127.0.0.1:5900
this is a text file and save it with .config extension??
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#38
Just paste that into a file, yes, but the filename is just "config" (no extension). Don't forget to change the hostname, port and user if you've used different ones.
 
Posts: 254 | Thanked: 17 times | Joined on Dec 2009
#39
all done...thrs anthr problem

when we start xterm, its start with a certain prefix...ie
~ $
and see exactly what happens..

~ $ ssh myname.dydns.org (i type my chosen name)
(the cursor comes to this line without any
prefix, and no pass prompt comes up)


same happens if i do this thing after gng into root....the prefix dissappears and nothing happens.!
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#40
Originally Posted by somekeystrokes View Post
all done...thrs anthr problem

when we start xterm, its start with a certain prefix...ie
~ $
and see exactly what happens..

~ $ ssh myname.dydns.org (i type my chosen name)
(the cursor comes to this line without any
prefix, and no pass prompt comes up)


same happens if i do this thing after gng into root....the prefix dissappears and nothing happens.!
You don't need to be root for this anyway. You can try running with extra verbosity (add extra v's for more):
Code:
ssh -v myname.dydns.org
That should provide more information on what it's doing - it can take a little while to get through though, so be patient.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:30.