我试图从JenkinsSSH plugin运行sudo命令,但得到了以下错误: sudo: sorry, you must have a tty to run sudo 我詹金斯作业需要能够停止和启动服务,我是unable to enable the remote user to do it without sudo。 有什么办法可以从Jenkins启用sudo?
看完这个问题后How to SSH and run commands in EC2 using boto3? 我尝试使用SSM自动在EC2实例上运行该命令。然而,当我这样写代码 def excute_command_on_instance(client, command, instance_id):
response = client.send_command(
Documen