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 2 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 01-Nov-2009, 11:14
Busy Penguin
 
Join Date: Jun 2008
Location: wichita
Posts: 300
pilotgi hasn't been rated much yet
Default Re: Need some help with remote desktop connections

All my previous attempts at connecting through ssh was when my laptop was using the same router as the target machine. Now I'm 600 miles away and all I'm getting is "Connection refused" again.

Is the correct method to use the ip address assigned by the router or the ip address at the location, i.e. the ip address assigned by the ISP that is outside the router?

I must me missing something simple here, since I'm not having any luck and remote administration is something a lot of people are doing.
Reply With Quote
  #12 (permalink)  
Old 01-Nov-2009, 13:50
Global Moderator
 
Join Date: Jul 2008
Location: Salt Lake City, Utah
Posts: 1,252
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 Sun, 01 Nov 2009 17:16:02 +0000, pilotgi wrote:

> All my previous attempts at connecting through ssh was when my laptop
> was using the same router as the target machine. Now I'm 600 miles away
> and all I'm getting is "Connection refused" again.
>
> Is the correct method to use the ip address assigned by the router or
> the ip address at the location, i.e. the ip address assigned by the ISP
> that is outside the router?
>
> I must me missing something simple here, since I'm not having any luck
> and remote administration is something a lot of people are doing.


The address you're using (192.168.1.2) is part of a special address block
that is not routable on the Internet because it's intended to be used on
a private network.

What you'll need to do from outside your router is use port forwarding on
the router to redirect port 22 (which is the default - if you've changed
the default, which is generally recommended, you'll need to redirect that
port) from your router to the machine in question.

Then what you do is connect to the address assigned to your router. The
router will forward the requests to the system designated in the router's
configuration.

There are three address blocks that are for private networks:

10.0.0.0/8
172.16.0.0/12
192.168.0.0/16

(The number after the / is the number of bits in the netmask - see

http://en.wikipedia.org/wiki/IP_addr...vate_addresses

for more information about this)

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

Quote:
Originally Posted by hendersj View Post

The address you're using (192.168.1.2) is part of a special address block
that is not routable on the Internet because it's intended to be used on
a private network.
Does this mean that I was wrong in using this address all along?



Quote:
Originally Posted by hendersj
Then what you do is connect to the address assigned to your router. The
router will forward the requests to the system designated in the router's
configuration.
Would the correct address to use be the one from the isp, such as 99.23.42.220?
Reply With Quote
  #14 (permalink)  
Old 01-Nov-2009, 19:00
Busy Penguin
 
Join Date: Jun 2008
Location: wichita
Posts: 300
pilotgi hasn't been rated much yet
Default Re: Need some help with remote desktop connections

I tried ssh user@99.23.42.220 and got: Connection timed out.
Reply With Quote
  #15 (permalink)  
Old 01-Nov-2009, 19:23
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,707
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Need some help with remote desktop connections

Quote:
Originally Posted by pilotgi
I tried ssh user@99.23.42.220 and got: Connection timed out.
Hi
You would have needed to setup your router to forward requests to the
internal machine;

laptop->external IP->{router forwards to internal ip}->192.xxx.xxx.xxx

If you have nmap installed you could run that against your external ip
and see if any ports are open.

You should look at get a shell account somewhere (rootshell.be) so you
can test this before leaving the comfort of your home

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 20:30, 2 users, load average: 0.13, 0.22, 0.21
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Reply With Quote
  #16 (permalink)  
Old 01-Nov-2009, 20:47
Busy Penguin
 
Join Date: Jun 2008
Location: wichita
Posts: 300
pilotgi hasn't been rated much yet
Default Re: Need some help with remote desktop connections

Quote:
Originally Posted by malcolmlewis
If you have nmap installed you could run that against your external ip
and see if any ports are open.
I installed nmap but the only info I got was that my isp was working. How do I get info about the ports?

Quote:
Originally Posted by malcolmlewis
You should look at get a shell account somewhere (rootshell.be) so you
can test this before leaving the comfort of your home
How do I do this?

Thanks for your input.
Reply With Quote
  #17 (permalink)  
Old 01-Nov-2009, 21:11
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,707
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Need some help with remote desktop connections

Quote:
Originally Posted by pilotgi
malcolmlewis Wrote:
> If you have nmap installed you could run that against your external ip
> and see if any ports are open.

I installed nmap but the only info I got was that my isp was working.
How do I get info about the ports?

malcolmlewis Wrote:
> You should look at get a shell account somewhere (rootshell.be) so you
> can test this before leaving the comfort of your home


How do I do this?

Thanks for your input.
Hi
If you dodn't get a list of open ports, try something like nmap -PN
<remote ip address> see the man page for some examples.

http://www.rootshell.be/ click the register link at the bottom
or
http://www.red-pill.eu/freeunix.shtml for others.

Once you have an account to log into, then you can ssh from your
home machine to that shell account, then back to you home machine to
test it all works. Or if you have a cellphone that can run applications
find a ssh client you can use (I use midpssh on my blackberry) to test.

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 22:10, 2 users, load average: 0.22, 0.33, 0.28
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Reply With Quote
  #18 (permalink)  
Old 02-Nov-2009, 15:09
Busy Penguin
 
Join Date: Jun 2008
Location: wichita
Posts: 300
pilotgi hasn't been rated much yet
Default Re: Need some help with remote desktop connections

The result of nmap -PN myipaddress (assigned by my isp for today):

Not shown: 999 filtered ports

PORT........STATE...SERVICE
50001/tcp open unknown


I don't know why it's not showing port 22, since that's the port I opened in the firewall on my router. I also allowed secure shell server.

I did have some success connecting with ssh on my own network between my two computers. Strangely, I can connect from my laptop to my desktop, but not the other way. After success with ssh, I tried using KRDC so I could see the gui on the remote machine, but I got a "Server couldn't be found" error.

Does anyone know how I can use ssh to see and manipulate the gui on a remote machine?
Reply With Quote
Reply
Page 2 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