Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.
Buying anything on Amazon? Please use the Geekzone Amazon aff link.




165 posts

Master Geek


Topic # 114633 26-Feb-2013 10:38 Send private message

I know what I'm trying to accomplish, I just need to be pointed in the right direction.

I'm trying to write a bash file to backup a router's settings once a month. The problem is... sonicwall have an annoying way of logging in. You can't just pass your username and password in via SSH, you have to enter it again. (here for example:http://tinyurl.com/atawg5l)

I know I should be somehow telling the bash file to "enter" strings or should I be using "expect"?

Either way, it's just the login which is kicking me to the curb, the backup command is pretty easy...

Create new topic
384 posts

Ultimate Geek
+1 received by user: 2


  Reply # 770821 27-Feb-2013 00:20 Send private message

Have you thought about using a ssh key instead of a passphrase?




Support a locally made Linux based Operating System, try Linux Lite.
Download Linux Lite

2036 posts

Uber Geek
+1 received by user: 283

Trusted
Subscriber

  Reply # 770827 27-Feb-2013 00:42 Send private message

Can you run the script from the sonicwall via a cron job so that you push the config to another server?



165 posts

Master Geek


  Reply # 770844 27-Feb-2013 07:18 Send private message

valtam: Have you thought about using a ssh key instead of a passphrase?


I don't think the sonicwall is capable of that



165 posts

Master Geek


  Reply # 770845 27-Feb-2013 07:21 Send private message

insane: Can you run the script from the sonicwall via a cron job so that you push the config to another server?


That job would still have to login to the firewall though?

The command I need to run:

send "export preferences ftp --ip address-- --username-- --password-- F/WName-$(date +%Y-%m-%d).exp\n"

Create new topic




Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





Trending now »

Hot discussions in our forums right now:

My un-consented UFB install
Created by thurthur, last reply by richms on 29-Nov-2014 22:33 (102 replies)
Pages... 5 6 7


This is the end ...
Created by joker97, last reply by joker97 on 29-Nov-2014 21:09 (65 replies)
Pages... 3 4 5


Excessive Vodafone Support call waiting times 75 mins and then i have to wait an hour for a callback
Created by i4n, last reply by Lurch on 29-Nov-2014 22:05 (41 replies)
Pages... 2 3


Gigatown winner town and plans
Created by freitasm, last reply by NonprayingMantis on 29-Nov-2014 07:40 (78 replies)
Pages... 4 5 6


Gull Employment Dispute.
Created by networkn, last reply by richms on 28-Nov-2014 17:57 (153 replies)
Pages... 9 10 11


The Warehouse pulling R18 games and DVD's
Created by semigeek, last reply by Geektastic on 27-Nov-2014 18:32 (64 replies)
Pages... 3 4 5


Star Wars: The Force Awakens Official Teaser
Created by plambrechtsen, last reply by Inphinity on 29-Nov-2014 21:47 (15 replies)

Seen any good Black Friday / Cyber Monday deals?
Created by Jaxson, last reply by GJones on 29-Nov-2014 19:00 (29 replies)
Pages... 2



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.