|
我用老外的方法,SSH连进去, 3个指令就好。
Alright, sorry it took so long, but here goes,
The way I got it to work was to SSH into the router, that is, to use an SSH client, such as PuTTY on windows, to connect to the router. Keep in mind that you have to have the SSH Daemon turned on, via ADMINISTRATION > SSH DAEMON on the web-configuration page.
I got in using username 'root' and the password was the same that I use on the web-configuration page.
Issuing the following command will list (in plain-text) the users & passwords currently set up.
nvram get pptpd_users
This will return a text-string consisting of all the usernames & passwords, where the username is immediately followed by the password in brackets ( username<password> ) So, all I did was append this string with the additional usernames and passwords, and used the following command to save it back to the nvram of the router.
nvram set pptpd_users='existing_username1<existing_password1>existing_username2<existing_password2>new_username1<new_password1>'
next, I committed nvram, which as I understand it, "saves" it so that it will be there after restarts.
nvram commit
After this, I exited my SSH connection, and via the web-configuration page, I rebooted the router. Upon reconnecting to it, I saw my new user & password on the list. I'm up to 8 users & passwords, and it seems to be working fine. I don't know how long of a string you can pass to that "nvram set" command, so maybe at some point it will error out if you put too many or too many with long usernames & passwords, but in any case, that's how I did it.
|
|