openSUSE Forums > Network/Internet » Need some help with remote desktop connections

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-Oct-2009, 17:58
Busy Penguin
 
Join Date: Jun 2008
Location: wichita
Posts: 295
pilotgi hasn't been rated much yet
Default Need some help with remote desktop connections

I'm competely lost when it comes to doing this. I copied these commands from another thread:

ssh -t -L 5900:localhost:5900 oldcpu@ip-address-of-pc-2 'x11vnc -localhost -nolookup -nopw -display :0'

What do I put for "oldcpu@ip-address-of-pc-2"? Right now I'm in the same room with the pc I want to connect to, but I plan on doing it from 600 miles away. The pc I'm trying to connect to is behind a router and the ip address is 192.168.1.2.

I tried using Krfb and Krdc and sending myself an invite but I had no luck. I set port 5900 to port forwarding on the router but I don't know if that's right.

Can anyone help?
Reply With Quote
  #2 (permalink)  
Old 28-Oct-2009, 18:07
Global Moderator
 
Join Date: Jul 2008
Location: Salt Lake City, Utah
Posts: 1,226
hendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enough
Default Re: Need some help with remote desktop connections

On Wed, 28 Oct 2009 23:06:02 +0000, pilotgi wrote:

> What do I put for "oldcpu@ip-address-of-pc-2"?


Replace "oldcpu" with your username on the remote system and 192.168.1.2
for "ip-address-of-pc-2".

Jim



--
Jim Henderson
openSUSE Forums Moderator
Reply With Quote
  #3 (permalink)  
Old 28-Oct-2009, 18:47
Busy Penguin
 
Join Date: Jun 2008
Location: wichita
Posts: 295
pilotgi hasn't been rated much yet
Default Re: Need some help with remote desktop connections

Thanks for the quick answer. The result of the command was "port 22: Connection refused." I configured port forwarding on port 22 in the router, but I got the same result on the second try.
Reply With Quote
  #4 (permalink)  
Old 28-Oct-2009, 19:19
Global Moderator
 
Join Date: Jul 2008
Location: Salt Lake City, Utah
Posts: 1,226
hendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enough
Default Re: Need some help with remote desktop connections

On Wed, 28 Oct 2009 23:56:02 +0000, pilotgi wrote:

> Thanks for the quick answer. The result of the command was "port 22:
> Connection refused." I configured port forwarding on port 22 in the
> router, but I got the same result on the second try.


I'd probably start by just trying to ssh to the box without the extra
commands - just "ssh user@192.168.1.2" (substitute the user name for
"user") and see if you can get a connection.

You might also need to open port 22 in the target system's firewall.

Jim



--
Jim Henderson
openSUSE Forums Moderator
Reply With Quote
  #5 (permalink)  
Old 28-Oct-2009, 19:48
Busy Penguin
 
Join Date: Jun 2008
Location: wichita
Posts: 295
pilotgi hasn't been rated much yet
Default Re: Need some help with remote desktop connections

I wasn't sure if I was configuring the firewall right so I just turned it off and I still got the connection refused to port 22 message, with the shortened command as you suggested.

As far as configuring the firewall goes is it YaST2 > Firewall Configuration > Allowed services > Advanced?
Reply With Quote
  #6 (permalink)  
Old 28-Oct-2009, 19:58
Global Moderator
 
Join Date: Jul 2008
Location: Salt Lake City, Utah
Posts: 1,226
hendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enough
Default Re: Need some help with remote desktop connections

On Thu, 29 Oct 2009 00:56:01 +0000, pilotgi wrote:

> I wasn't sure if I was configuring the firewall right so I just turned
> it off and I still got the connection refused to port 22 message, with
> the shortened command as you suggested.
>
> As far as configuring the firewall goes is it YaST2 > Firewall
> Configuration > Allowed services > Advanced?


That would be the place to make the change, but disabling the firewall
also would have the same effect.

Let's try a couple commands from the system you're connecting from:

1. ping 192.168.1.2

That will check basic connectivity.

2. telnet 192.168.1.2 22

That will check to see if we can get a response on the default ssh port
(assuming here that you haven't changed it).

What responses do you get to those two commands?

Jim
--
Jim Henderson
openSUSE Forums Moderator
Reply With Quote
  #7 (permalink)  
Old 28-Oct-2009, 20:11
Busy Penguin
 
Join Date: Jun 2008
Location: wichita
Posts: 295
pilotgi hasn't been rated much yet
Default Re: Need some help with remote desktop connections

Ping to 192.168.1.2 was successful. Result of telnet 192.168.1.2 22:

Trying 192.168.1.2...
telnet: connect to address 192.168.1.2: Connection refused
Reply With Quote
  #8 (permalink)  
Old 28-Oct-2009, 22:39
Global Moderator
 
Join Date: Jul 2008
Location: Salt Lake City, Utah
Posts: 1,226
hendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enough
Default Re: Need some help with remote desktop connections

On Thu, 29 Oct 2009 01:16:03 +0000, pilotgi wrote:

> Ping to 192.168.1.2 was successful. Result of telnet 192.168.1.2 22:
>
> Trying 192.168.1.2...
> telnet: connect to address 192.168.1.2: Connection refused


Next step would be to check and see if sshd is running on the target
server - sounds like it probably isn't.

In YaST on the target machine, select "System Services" and make sure
sshd is set to "enabled" (in simple mode; in expert mode, you'll probably
want to enable runlevels 3 and 5).

Jim
--
Jim Henderson
openSUSE Forums Moderator
Reply With Quote
  #9 (permalink)  
Old 29-Oct-2009, 12:24
Busy Penguin
 
Join Date: Jun 2008
Location: wichita
Posts: 295
pilotgi hasn't been rated much yet
Default Re: Need some help with remote desktop connections

I enabled remote access through YaST > Network services and sshd in System Services, runlevel 3 and 5. Now I get this when I do ssh user@192.168.1.2:

The authenticity of host '192.168.1.2 (192.168.1.2)' can't be established.
RSA key fingerprint is 66:23:61:a9:b8:1d:7b:48:96:ff:e2:18:79:d5:31:ff.
Are you sure you want to continue connecting (yes/no)? Yes.
Host key verification failed.
Reply With Quote
  #10 (permalink)  
Old 29-Oct-2009, 23:46
Global Moderator
 
Join Date: Jul 2008
Location: Salt Lake City, Utah
Posts: 1,226
hendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enoughhendersj 's reputation will be famous soon enough
Default Re: Need some help with remote desktop connections

On Thu, 29 Oct 2009 17:26:01 +0000, pilotgi wrote:

> I enabled remote access through YaST > Network services and sshd in
> System Services, runlevel 3 and 5. Now I get this when I do ssh
> user@192.168.1.2:
>
> The authenticity of host '192.168.1.2 (192.168.1.2)' can't be
> established.
> RSA key fingerprint is
> 66:23:61:a9:b8:1d:7b:48:96:ff:e2:18:79:d5:31:ff. Are you sure you want
> to continue connecting (yes/no)? Yes. Host key verification failed.


That's a step in the right direction - the sshd daemon is now running and
is allowing an initial connection to be made.

But it's odd that it's failing the host key verification after you answer
"yes". What version of the OS (and sshd) is on the target system?

I'm not able to duplicate the failure on my systems - I'm guessing that
on your target system, "Yes." is not "yes" and that may be why it's
failing. It's a long shot, though.

Is there anything in the target system's /var/log/messages file relating
to the connection attempt?

Jim



--
Jim Henderson
openSUSE Forums Moderator
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2