ssh 远程 命令需要 sudo 时 , 加参数 -t

ssh -t lab@${ip} 'sudo make install; exit'

posted on 2020-09-09 18:09  兔子二  阅读(464)  评论(0编辑  收藏  举报

导航