How to SCP between router and localhost

Moderator: Forum moderators

Post Reply
ninjanoir78
Posts: 2
Joined: Sat Feb 19, 2022 2:43 pm

How to SCP between router and localhost

Post by ninjanoir78 »

Hi,

I would like to copy File with SCP in script.
I explain here, from router ssh session, the script is running from router, i need to SCP to my PC, and take the file to my router.

But what I try does not work, cause I can't exit from my script or I cant stop router ssh session to SCP PC to router.
I need to stay in my router session and take file and bring it back, is it possible?

User avatar
Flash
Moderator
Posts: 897
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 46 times
Been thanked: 105 times

Re: How to SCP between router and localhost

Post by Flash »

What is SCP?

Chaos coordinator :?
Clarity
Posts: 3270
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1347 times
Been thanked: 438 times

Re: How to SCP between router and localhost

Post by Clarity »

SCP ... Secure Copy???

If that is the intent of moving a file from/to a remote, seems that rsync is a better option as its cli command structure is more intuitive in use and solution.

No SSH needed.

Post Reply

Return to “Network/Server”