maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   VNC with public IP (https://talk.maemo.org/showthread.php?t=42940)

seriouser 2010-02-24 13:58

Re: VNC with public IP
 
1 Attachment(s)
Here's a screenshot if it helps. I can ping my DNS thingy from the N900 so that's something hopefully.

Rob1n 2010-02-24 14:15

Re: VNC with public IP
 
Quote:

Originally Posted by seriouser (Post 544330)
Here's a screenshot if it helps. I can ping my DNS thingy from the N900 so that's something hopefully.

That looks okay to me. So when you do "ssh seriouser.mine.nu" it still tries to use port 22?

seriouser 2010-02-24 14:29

Re: VNC with public IP
 
Quote:

Originally Posted by Rob1n (Post 544350)
That looks okay to me. So when you do "ssh seriouser.mine.nu" it still tries to use port 22?

Yep.

I just tried the whole process again and created new keys in the /home/user/.ssh folder as id_rsa with a passphrase. I then copied the .pub file to the freeSSHd folder as "seriouser"

But then again if the ssh still uses port 22 instead of 522 it really isn't a matter of keys, right? Should I try to change the default ssh_config file that resides somewhere in /etc.....?



Also, if I understand the whole RSA business right there's a private and public key that have to match. At the moment the public key on my PC is named "seriouser" while the private key on the N900 is named "id_rsa" Could that cause problems if I somehow get the port problem corrected.

Sorry about the endless questions, it's just frustrating to not have this bloody thing work! :)

Rob1n 2010-02-24 14:37

Re: VNC with public IP
 
Quote:

Originally Posted by seriouser (Post 544370)
Yep.

I just tried the whole process again and created new keys in the /home/user/.ssh folder as id_rsa with a passphrase. I then copied the .pub file to the freeSSHd folder as "seriouser"

But then again if the ssh still uses port 22 instead of 522 it really isn't a matter of keys, right? Should I try to change the default ssh_config file that resides somewhere in /etc.....?

One other thing to check - can you run:
Code:

file /home/user/.ssh/config

seriouser 2010-02-24 14:38

Re: VNC with public IP
 
Quote:

Originally Posted by Rob1n (Post 544385)
One other thing to check - can you run:
Code:

file /home/user/.ssh/config

Hmm.. it's says "/bin/sh: file: not found"

Rob1n 2010-02-24 14:46

Re: VNC with public IP
 
Quote:

Originally Posted by seriouser (Post 544386)
Hmm.. it's says "/bin/sh: file: not found"

Oh, okay - I must have installed that at some point. Anyway, the concern I have is that the file may be using DOS format line endings rather than UNIX format, which could well mess up ssh.

Try this, which should fix it up:
Code:

cat /home/user/.ssh/config | tr -d '\r' > /home/user/.ssh/config2
mv /home/user/.ssh/config2 /home/user/.ssh/config


seriouser 2010-02-24 14:49

Re: VNC with public IP
 
Quote:

Originally Posted by Rob1n (Post 544406)
Oh, okay - I must have installed that at some point. Anyway, the concern I have is that the file may be using DOS format line endings rather than UNIX format, which could well mess up ssh.

Try this, which should fix it up:
Code:

cat /home/user/.ssh/config | tr -d '\r' > /home/user/.ssh/config2
mv /home/user/.ssh/config2 /home/user/.ssh/config


No difference, still outputs the "not found" message. :confused:

seriouser 2010-02-24 14:51

Re: VNC with public IP
 
I tried to ssh to my PC's static IP address and it connected but complained about the authenticity of the host and all that rot. Connecting to seriouser.mine.nu doesn't even do that so it must be reading the config file somehow.

Rob1n 2010-02-24 14:56

Re: VNC with public IP
 
Quote:

Originally Posted by seriouser (Post 544411)
No difference, still outputs the "not found" message. :confused:

Which "Not found" message - from ssh or from sh?

The other thing to try (to make sure it's not the config file causing the problem) is:
Code:

ssh seriouser@seriouser.mine.nu:522
If that connects okay then the problem's with the config file somewhere.

seriouser 2010-02-24 15:09

Re: VNC with public IP
 
Quote:

Originally Posted by Rob1n (Post 544422)
Which "Not found" message - from ssh or from sh?

The other thing to try (to make sure it's not the config file causing the problem) is:
Code:

ssh seriouser@seriouser.mine.nu:522
If that connects okay then the problem's with the config file somewhere.

Using "ssh seriouser@seriouser.mine.nu:522" results in the following:

"ssh: Could not resolve hostname seriouser.mine.nu:522: Name or service not known"


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

vBulletin® Version 3.8.8