LinuxQuestions.org
Visit Jeremy's Blog.
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 05-27-2010, 06:27 AM   #1
Heshsham
LQ Newbie
 
Registered: May 2010
Posts: 6

Rep: Reputation: 0
Remotely Accessing Linux Machine with Dynamic IP


Hi

I want to access and run some programs in the terminal on my office Linux machine from my home through Internet. I use Fedora 10. However the internet connection at office has dynamic IP.
Is it possible to access remotely a terminal on machine which has Dynamic IP addresses? How?

Thanks and regards,

Heshsham
 
Old 05-27-2010, 06:32 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Yes, the same way as with any other IP??

If you're worried about determining its IP, sign up with one of the free Dynamic DNS services and set your server to run a script (often provided) that updates its IP with the services, every time the network interface comes up.
 
Old 05-27-2010, 07:06 AM   #3
Heshsham
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AlucardZero View Post
Yes, the same way as with any other IP??

If you're worried about determining its IP, sign up with one of the free Dynamic DNS services and set your server to run a script (often provided) that updates its IP with the services, every time the network interface comes up.
Thanks for your answer. Yes I was worried about how it will keep track of changing IP address. Let me try.

Thanks once again
 
Old 05-27-2010, 08:03 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
If your office Linux machine connects directly to the Internet (scary, security-wise) then AlucardZero's suggestion is the best.

If your office LAN connects to the Internet via a modem/router:
  • There is a better option; many Internet connection routers can be configured to update a dynamic DNS service when they get a new address; this would update faster than periodically running a script.
  • You will also need to configure it to port-forward incoming terminal packets (ssh?) to your computer
.
 
Old 05-27-2010, 09:44 AM   #5
threaderslash
Member
 
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 115

Rep: Reputation: 15
The best choice is to have a dyndns allowing you to access your computer remotely. It will provide you the IP as static, even when you are indeed using a dynamic IP. The good on it, is that you don't need to pay for a static IP.

- see http://www.dyndns.com/services/dns/dyndns/ddns.html

About remote access, the best and safe option is to use RDP over VPN.
http://www.linuxforums.org/forum/lin...rough-vpn.html

Hope this help.
 
1 members found this post helpful.
Old 05-27-2010, 10:34 AM   #6
Heshsham
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by threaderslash View Post
The best choice is to have a dyndns allowing you to access your computer remotely. It will provide you the IP as static, even when you are indeed using a dynamic IP. The good on it, is that you don't need to pay for a static IP.

- see http://www.dyndns.com/services/dns/dyndns/ddns.html

About remote access, the best and safe option is to use RDP over VPN.
http://www.linuxforums.org/forum/lin...rough-vpn.html

Hope this help.
Thank you very much for replies guys...

I want to first do remote access through SSH. The following commands tell me whether I have SSH running or not:

[root@Heshsham ~]# ps -e |grep ssh
2056 ? 00:00:00 sshd
2566 ? 00:00:00 ssh-agent


Well I opened an account at DynDNS and got a hostname myname.ath. when I am opening this I am directed to my router, where we set various parameters of the router.

I dont have any idea what next should be done. I would really appreciate if you could tell me the next steps that I have to follow. I have seen many articles on internet and I am getting lost in it. Your directions will help me in getting the work done quickly.

Thanks once again
 
Old 05-27-2010, 10:48 AM   #7
rich_c
Member
 
Registered: Apr 2008
Location: UK
Distribution: PeppermintOS
Posts: 387
Blog Entries: 74

Rep: Reputation: 81
On my accessible Linux box, I set up SSH as securely as I could (See my blog post(s) on the subject) then got myself a dyndns account. Port 22 is forwarded by my router to my Linux box and my router is configured to update dyndns every time the ip changes. It's pretty much as simple as that.
 
Old 05-27-2010, 10:50 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by Heshsham View Post
Well I opened an account at DynDNS and got a hostname myname.ath. when I am opening this I am directed to my router, where we set various parameters of the router.

I dont have any idea what next should be done. I would really appreciate if you could tell me the next steps that I have to follow.
How are you "opening this"? How are you connected to the Internet when doing so? What command or graphical utility are you using?

What do you mean "I am directed to my router, where we set various parameters of the router"? If you mean you access your router over the Internet and can then configure it, that is very insecure and it would be a good idea to configure the router so it is not possible.

What sort of router is it? What is its IP address on your LAN?

If you want us to spoon feed you with instructions on how to set up your system, you will have to spoon feed us with information about your system and what you are doing. We are not psychic!
 
Old 05-27-2010, 10:03 PM   #9
Heshsham
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rich_c View Post
On my accessible Linux box, I set up SSH as securely as I could (See my blog post(s) on the subject) then got myself a dyndns account. Port 22 is forwarded by my router to my Linux box and my router is configured to update dyndns every time the ip changes. It's pretty much as simple as that.
Could you please give me the link to your blog?
 
Old 05-28-2010, 02:07 AM   #10
rich_c
Member
 
Registered: Apr 2008
Location: UK
Distribution: PeppermintOS
Posts: 387
Blog Entries: 74

Rep: Reputation: 81
Post

Quote:
Originally Posted by Heshsham View Post
Could you please give me the link to your blog?
Sure, it's a little to the left of this. In my profile.

However, here's a link to a 'tutorial' I put on the Mepis Community site.
 
  


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
LXer: Remotely Accessing Your Linux Computer: Part 2 LXer Syndicated Linux News 0 10-06-2009 11:20 AM
Accessing linux/sun machine remotely shahed Linux - Software 2 06-13-2007 10:34 PM
how to shutdown,restart and log off windows machine remotely through a linux machine deepak rawat Fedora 1 05-23-2006 01:25 AM
accessing linux box remotely watts3000 Linux - Newbie 5 12-31-2005 06:13 AM
newbie help on accessing my new linux remotely please natbrazil Linux - Software 3 08-28-2003 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:49 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration