gpt4 book ai didi

ssh - 运行eval `ssh-agent -s`会给出错误

转载 作者:行者123 更新时间:2023-12-02 14:21:58 25 4
gpt4 key购买 nike

尝试使用命令选项puppet运行 eval`ssh-agent -s 命令,这会给我这些错误:

exec { 'eval' :
command => "eval `ssh-agent -s`",
}

给我这个错误:
Error: Validation of Exec[eval] failed: 'eval `ssh-agent -s`' is not qualified and no path was specified. Please qualify the command or specify a path. at /puppet.pp:18
Wrapped exception:
'eval `ssh-agent -s`' is not qualified and no path was specified. Please qualify the command or specify a path.

最佳答案

您需要为exec设置PATH。我可以通过设置path参数在本地定义:

exec { 'eval' :
command => "eval `ssh-agent -s`",
path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ],
}

或全局:
Exec { path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ] }

关于ssh - 运行eval `ssh-agent -s`会给出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28525569/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com