Go调用ssh 执行Shell命令
发布时间:2020-12-15 16:31:02 所属栏目:安全 来源:网络整理
导读:使用ssh直接进登录远程进行shell命令执行的方法: ssh -o StrictHostKeyChecking = no -p 2222 -i /home/www / . ssh/id_rsa www@ 192.168 .1 .223 ' cd /htdocs/www.35dalu.com/view/theme/site npm run build:dll npm run build' npm install webpack -g n
使用ssh直接进登录远程进行shell命令执行的方法: ssh -o StrictHostKeyChecking=no -p 2222 -i /home/www/.ssh/id_rsa www@192.168.1.223 ' cd /htdocs/www.35dalu.com/view/theme/site npm run build:dll npm run build'
npm install webpack -g
npm install cross-env -g
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容