Here what I try to do; from my router ([email protected]). I want to SCP a file on my PC and copy it to my router.
So, if I'm already in ssh remote: root@openwrt: SCP root@mypc? What is my PC, home/username?
Here what I try to do; from my router ([email protected]). I want to SCP a file on my PC and copy it to my router.
So, if I'm already in ssh remote: root@openwrt: SCP root@mypc? What is my PC, home/username?
This won't work as your PC would need to have a SSH service running.
Do it the other way around: run a SCP program on your PC (e.g. WinSCP if your PC runs Windows OS, scp if it runs Linux, etc.), use it to connect via SSH to your router ([email protected]), and transfer the file. No need to know your PC's current user name and IP address.
You can run the following commands on your linux PC.
To get current logged in username:
whoami
To get the IP address:
hostname -I