LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-28-2008, 10:30 PM   #1
nmansour
Member
 
Registered: Sep 2006
Location: Chicago
Distribution: Ubuntu 8.04 - Fedora 9 on an AMD 64bit Machine
Posts: 101

Rep: Reputation: 15
Connect to my computer at work


Hi All,

My problem is so simple I guess, yet I searched and could not get solution. I want to be to connect to my box at work. I want to be able to have a console so I can work as "if I am in front of my computer at work". The connection should be secured, preferably through "ssh"

My work computer is in my Department, I am a graduate student, and the IP address is a dhcp.

I apologize, in advance, if this is a repeat of another thread.

Thanks a lot,

Noha

Last edited by nmansour; 01-28-2008 at 10:32 PM.
 
Old 01-28-2008, 10:56 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Are you connecting through a (work) firewall? Does it translate the addresses (ie is the address of the work PC a "real" address or a private address)? Do the administrators where you work allow this sort of thing?

The easiest way to approach it is to diagram all of the important points between the 2 ends (your home PC and your work PC) and determine what you need to do to successfully get traffic through. For example:

Code:
+---------+        +---------------+
| Home PC |--------+ Home firewall +----------------+
+---------+        +---------------+                |
  No problem         Outbound                       |
  here, ssh          connections                    |
  client             to ssh allowed          "The Internet"
  connections OK                                    |
                                                    |
+---------+        +---------------+                |
| Work PC +--------+ Work firewall +----------------+
+---------+        +---------------+
  Running ssh        Admins do allow
  daemon and         incoming ssh
  accepting          connections and
  connections        internal IP
  on port 22         addresses are
                     public
I'm oversimplifying just to illustrate this...
 
Old 01-28-2008, 11:01 PM   #3
nmansour
Member
 
Registered: Sep 2006
Location: Chicago
Distribution: Ubuntu 8.04 - Fedora 9 on an AMD 64bit Machine
Posts: 101

Original Poster
Rep: Reputation: 15
Thanks for the reply,

1- I think the Univ have a firewall (so let's assume that)
2- My PC at work has an address that is assigned automatically, and it is not a real IP address.
3- I am the admin of my computer at work! (weak admin)

Noha

PS.

How to run the ssh daemon and make it accept connections through port 22?

Last edited by nmansour; 01-28-2008 at 11:03 PM.
 
Old 01-28-2008, 11:37 PM   #4
juergen
Member
 
Registered: Sep 2001
Posts: 40

Rep: Reputation: 16
Quote:
Originally Posted by nmansour View Post
[...]
How to run the ssh daemon and make it accept connections through port 22?
This is not your most fundamental problem; the real problem is that if your work machine sits on a LAN and gets its address via DHCP, this is probably not a routable address, i.e., it is only useful to connect to from inside the LAN. but not from the outside world. Is it something like 192.168.x.x or 10.x.x.x? If so, you can't connect to it from the Internet without help from your network administrator.

As for your initial question: Your profile indicates that you use Fedora. Is that the machine that you are trying to connect to? If so,
Code:
yum install openssh-server
ought to do the trick, if I remember correctly. You may have to adjust Fedora's firewall to let the connection through (should be under Main Menu > System Settings > Security Level), but again, if your internal IP address isn't routable, all that won't do much for you.
 
Old 01-30-2008, 07:15 PM   #5
nmansour
Member
 
Registered: Sep 2006
Location: Chicago
Distribution: Ubuntu 8.04 - Fedora 9 on an AMD 64bit Machine
Posts: 101

Original Poster
Rep: Reputation: 15
Hi again,

I checked with the IT department and they said that I use the university network at home too (to connect to the internet) so now this means that I use the university network both at home and at work.

How may I now configure ssh so I can connect from my home computer to my work one?

Noha
 
Old 01-30-2008, 07:30 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
To get from the internet to your work PC requires one of 2 things. Either the IP address of your work PC has to be publicly routable or the firewall at work has to forward the connection to your PC.

If neither of those are possible, it may be possible to set up a tunnel from work to home and use it in reverse. google returns some pages that I can't access here at work and the info at http://www.openssh.org/faq.html#2.11 may be useful.
 
Old 01-31-2008, 05:54 PM   #7
framp
Member
 
Registered: Apr 2003
Location: Stuttgart, BW Germany
Distribution: SuSE 10.3-11.0, Knoppix, Ubuntu 8.10, Fedora 10
Posts: 119
Blog Entries: 5

Rep: Reputation: 15
Will work with tunneling. But make sure you don't violate security rules !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to connect a second computer to the internet through the first mbreith Linux - Newbie 7 02-21-2006 03:13 AM
HELP! My Computer can't connect to my network Scorlibrian Linux - Wireless Networking 2 01-08-2005 06:09 PM
How to connect to my home computer from work? enemorales Linux - Networking 3 11-26-2004 12:17 PM
simplest way to connect to another computer? hobylinux Linux - Newbie 9 08-22-2003 02:30 AM
Is there a simple way to connect my computer frontier1 Linux - Networking 3 03-01-2003 10:29 AM


All times are GMT -5. The time now is 10:08 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration