It looks like it is logging into the remote computer each time a command is done - do I have an incorrect setting?

9 views
Skip to first unread message

Roxanne Montgomery Woodyard

unread,
Aug 24, 2020, 3:42:27 PM8/24/20
to Rex Users
I ran rex in debug mode for another reason (there was not a problem) but I noticed that between each remote command I found the following:

[2020-08-24 14:30:58] DEBUG - Checking for a private key in .ssh/config
[2020-08-24 14:30:58] DEBUG - Rex::Group::Entry::Server (private_key): returning /root/.ssh/id_xxxxxxxx
[2020-08-24 14:30:58] DEBUG - Checking for a public key in .ssh/config
[2020-08-24 14:30:58] DEBUG - Rex::Group::Entry::Server (public_key): returning /root/.ssh/id_xxxxxxx.pub

Does this mean that rex is logging in each time or do I need to change a setting so that it does not need to?

Thanks,

David

erkif...@gmail.com

unread,
Aug 25, 2020, 12:00:03 PM8/25/20
to rex-...@googlegroups.com
Hi David,

On 2020-08-24 12:42, Roxanne Montgomery Woodyard wrote:
>[2020-08-24 14:30:58] DEBUG - Checking for a private key in .ssh/config
>[2020-08-24 14:30:58] DEBUG - Rex::Group::Entry::Server (private_key):
>returning /root/.ssh/id_xxxxxxxx
>[2020-08-24 14:30:58] DEBUG - Checking for a public key in .ssh/config
>[2020-08-24 14:30:58] DEBUG - Rex::Group::Entry::Server (public_key):
>returning /root/.ssh/id_xxxxxxx.pub
>
>Does this mean that rex is logging in each time or do I need to change a
>setting so that it does not need to?

Without seeing the full debug log and the exact code you are running, I
can't be 100% sure. Based on the few lines you shared, I don't think
they indicate multiple connections.

Successful connections to an imaginary server named "servername" look
like this in the debug log:

[2020-08-25 17:35:34] DEBUG Connected and authenticated to servername.
[2020-08-25 17:35:34] DEBUG Successfully authenticated on servername.

It might also help to directly check the logs of the remote server and
see how many connections are being made.

To be sure, could you post the full debug log and an example task
somewhere, then share the link to them, please?

Should you need further support, feel free to ping us on IRC too.

Hope this helps,
FErki
Reply all
Reply to author
Forward
0 new messages