What's new

N66U Set WPA PSK Via Commandline

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

cacack

New Around Here
SOLVED: N66U Set WPA PSK Via Commandline

Hi All,
I am running Merlin's 3.0.0.4.374.34 build on an RT-N66U. Is there a way to set my PSK using the commandline? The goal is to implement a rolling PSK for one of my guest wireless instances. I would like the router to randomly generate a new passphrase, set it, then email myself the new key.

I tried using nvram. I grepped for the key I set in the GUI, then tried changing it using the following, but it didn't work.

Code:
nvram set wl0.1_wpa_psk="This is a test."

I tried searching the forums, and Google, without any luck. Hopefully this can be done. Any help would be greatly appreciated!

-Chris
 
Last edited:
You will need to restart the wireless services after making any change to it.

Code:
service restart_wireless
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top