Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* npm install simple-ssh */
- var SSH = require('simple-ssh');
- var ssh = new SSH({
- host: '2.2.2.2',
- user: 'root',
- pass : 'root'
- });
- ssh.exec('cd /var/www/site.com/public_html/ && git pull', {
- pty: true,
- out: function(stdout) {
- console.log(stdout);
- }
- }).start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement