LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Remotely Accessing Linux Machine with Dynamic IP (https://www.linuxquestions.org/questions/linux-networking-3/remotely-accessing-linux-machine-with-dynamic-ip-810426/)

Heshsham 05-27-2010 06:27 AM

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

AlucardZero 05-27-2010 06:32 AM

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.

Heshsham 05-27-2010 07:06 AM

Quote:

Originally Posted by AlucardZero (Post 3982799)
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

catkin 05-27-2010 08:03 AM

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
.

threaderslash 05-27-2010 09:44 AM

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.

Heshsham 05-27-2010 10:34 AM

Quote:

Originally Posted by threaderslash (Post 3983002)
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

rich_c 05-27-2010 10:48 AM

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.

catkin 05-27-2010 10:50 AM

Quote:

Originally Posted by Heshsham (Post 3983054)
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!

Heshsham 05-27-2010 10:03 PM

Quote:

Originally Posted by rich_c (Post 3983071)
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?

rich_c 05-28-2010 02:07 AM

Quote:

Originally Posted by Heshsham (Post 3983687)
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.


All times are GMT -5. The time now is 12:43 AM.