为什么我在使用织物时得到提示?

2024-04-24 22:15:28 发布

您现在位置:Python中文网/ 问答频道 /正文

当我尝试使用fabric时,它会在我进行身份验证后给我一个远程shell。当我退出时,fabric任务运行。为什么会这样?在

以下是我收到的输出:

user@locahost:~$ fab -H remote_host mytask
[remote_host] Executing task 'mytask'
[remote_host] run: python --version
[remote_host] Login password: 
[remote_host] out: user@remote_host:~>exit
[remote_host] out: exit
[remote_host] out: Could not open a connection to your authentication agent.
[remote_host] out: Python 2.6.4
[remote_host] out: 

Done.
Disconnecting from remote_host... done.

登录后,我收到以下提示user@remote_host:~>,我必须手动退出。在

内容工厂文件.py公司名称:

^{pr2}$

顺便说一下,我使用的是fabric 1.2版。在


Tags: run身份验证hosttask远程remoteexitshell
1条回答
网友
1楼 · 发布于 2024-04-24 22:15:28

Could not open a connection to your authentication agent.告诉我它正在寻找ssh代理或类似的东西。请查看所连接主机的.login/.profile/.bash_配置文件,以了解问题。另外,尝试手动启动SSH连接,看看这是否提供了任何提示。在

相关问题 更多 >