[SOLVED]SSH/SCP to copy files away from router.

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
BatterBits
Posts: 9
Joined: Fri Jun 30, 2017 2:57 am

[SOLVED]SSH/SCP to copy files away from router.

Post by BatterBits »

I want to take regular backups and copy the files off the router to my NAS, using a cron job.

What do I need to do to enable this functionality? I can scp from a the NAS, and "collect" the files, but I want to run the job from the router, not from the NAS

The command I use, just hangs and eventually times out. I've tried with SSH - using this:

Code: Select all

*****@Gargoyle:/tmp/backup# ssh 192.168.1.210

ssh: Exited: Error connecting: Connection timed out
this works from a different host on the same LAN -

Code: Select all

*****@pine64:/tmp/backup$ ssh 192.168.1.210
*****@192.168.1.210's password:
Last edited by BatterBits on Tue Oct 31, 2017 2:21 am, edited 1 time in total.
Regards,


BatterBits

User avatar
ericwong
Posts: 430
Joined: Sat Aug 25, 2012 6:15 am
Location: Melbourne, Australia
Contact:

Re: SSH/SCP to copy files away from router.

Post by ericwong »

I think it is probably easier to run cron to backup your files to USB drive which is shared on your LAN. Then, you can run another command to copy the files from the shared USB drive to your NAS.
Eric Wong

PM me if you need to buy Gargoyle router in Australia/NZ, willing to pay me to help you on your Gargoyle configurations or build custom configured ROM with pre-installed app or try to fix your bricked router. Yes, I am looking for job/work.

BatterBits
Posts: 9
Joined: Fri Jun 30, 2017 2:57 am

Re: SSH/SCP to copy files away from router.

Post by BatterBits »

Thanks Eric - inadvertently, you have prompted a resolution to the problem.

I tried to ssh from the router to another box, which succeeded - which in turn made me realise there was a problem on the NAS - it turns out that the router ip address had been but on the NAS's ban list permanently! Having resolved that, I can now scp to the NAS as I had wanted to do.
Regards,


BatterBits

User avatar
ericwong
Posts: 430
Joined: Sat Aug 25, 2012 6:15 am
Location: Melbourne, Australia
Contact:

Re: SSH/SCP to copy files away from router.

Post by ericwong »

BatterBits wrote:it turns out that the router ip address had been but on the NAS's ban list permanently!
Since you didn't add the IP address to the ban list yourself, I have a feeling this setting could be related to security. Just make sure you aren't creating a security hole yourself by exposing your NAS to the internet via your router ;)
Eric Wong

PM me if you need to buy Gargoyle router in Australia/NZ, willing to pay me to help you on your Gargoyle configurations or build custom configured ROM with pre-installed app or try to fix your bricked router. Yes, I am looking for job/work.

Post Reply