I would like to scp some large files from my lubuntu laptop to windows desktop. The ip address retrieved with ip -a command however only allows me connect from the laptop to itself. Router or modem is Technicolor tg558v, provider Carrytel (probably Bell reseller). Probably dynamic ip.
Workarounds that I am aware. I know I can buy a portable drive but would prefer a free solution. Fallback I am aware is Google Drive which is fine to pass smaller files (below 15G) or file chunks, but hope that scp or rsync could be faster/more convenient. Model/router is technicolor, both have wifi albeit slower than wired connection.
Your router shares your public internet IP address among all the devices on your local network (LAN).
Here's an example.
The (local) LAN address of my laptop is provided con be provided several ways: It's 192.168.1.6
My public internet address can be queried from the router (login required), from Google ("What is my IP address?") or from any number of internet services: We will pretend that it's 123.45.67.89
Inbound connections from the internet go to your router. Your router decides which machine on your LAN gets the packet. That's why it's called a router: It routes the packets between the networks.
You must create a Port Forwarding rule on your router (not on your Ubuntu system) to tell the router what to do with, say, inbound ssh connections. Your router is not psychic - it needs to be told to Forward inbound ssh connections to 192.168.1.6.
After that, it's easy:
If I want to SSH to my laptop from another machine on the same LAN:
ssh 192.168.1.6
If I want to SSH to my laptop from anywhere else on the internet:
ssh 123.45.67.89
. The router will automatically forward the connection to 192.168.1.6.