6
4
I often find I want a file on my home machine when I'm out and about, so I would like to set up ssh server on my home machine to be able to login securely over the internet. It's my understanding that this requires to set up some port forwarding on my ADSL router at home, and then I can ssh in (using the ADSL router's IP address) and it should be secure using a public/private key pair I can make with ssh-keygen
.
My question is, doesn't it require my router's IP address to be static or known beforehand? As far as I know my ISP might change my IP address dynamically, so I might find I can't log in some days without going home and googling for "What's my IP address?". Is there a usual way around this, and how frequently do consumer ISPs change your IP address typically anyway?
As well as a massive amount of files, I also want access to processes and devices, so I'm not interested in cloud or dropbox like answers.
1I have had the same IP here at this house for 5 years. Obviously it's not going to be the same for everyone but they don't just up and change it unless your modem is offline when your lease expires and even then you'll get it back unless someone else gets it instead. So low chance it will change. – Paperlantern – 2012-01-10T03:30:42.587
Where I am at, if I turn off my router for 12 hours or more, many times I will get a new IP. Less than 12 hours, and I'll always get my old IP address back. I have also tried this by changing the router MAC address, and then change it back after 12 to 24 hours. The longer I go past 12 hours, the more likely I can't get the original IP back. – Kevin Fegan – 2012-11-13T06:04:50.763