Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var SSH = require('simple-ssh');
- var ssh = new SSH({
- host: '192.168.1.1',
- user: 'root',
- pass: 'admin'
- });
- var command = "uci set wireless.@wifi-iface[0].ssid=easyconf & "
- +
- "uci set wireless.@wifi-iface[0].key=easyconf123 &"
- +
- "wifi reload";
- ssh.exec(command, {
- out: function(stdout) {
- console.log(stdout);
- }
- }).start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement