# SSH agent support

**URL:** https://www.finalbuilder.com/forums/t/ssh-agent-support/7231
**Category:** Feature Requests
**Created:** [May 27, 2022, 2:51am UTC](https://www.finalbuilder.com/forums/t/ssh-agent-support/7231 "2022-05-27T02:51:28Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![softperfect](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/b5ac83/32.png) [@softperfect](https://www.finalbuilder.com/forums/u/softperfect)
#### Post date: [May 27, 2022, 2:51am UTC](https://www.finalbuilder.com/forums/t/ssh-agent-support/7231/1 "2022-05-27T02:51:28Z")

</div>

Would you be able to add **ssh-agent** and **Pageant** support for SSH connection authentication?

That way the authentication process can be a lot more secure since we don’t need to leave key files sitting around on a disk.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [May 27, 2022, 3:01am UTC](https://www.finalbuilder.com/forums/t/ssh-agent-support/7231/2 "2022-05-27T03:01:37Z")

</div>

It’s been a while since I tested this, but I don’t believe we need to do anything specific for ssh-agent, if it’s configured correctly git will use the agent

> **[Setting up SSH-Agent in Windows for Passwordless Git Authentication - InterWorks](https://interworks.com/blog/2021/09/15/setting-up-ssh-agent-in-windows-for-passwordless-git-authentication/)**
>
> SSH-Agent and OpenSSH are tools in Windows that can be used to authenticate to remote Git repositories, such as GitLab, GitHub, Azure DevOps, etc. Once set up as a service that stores your various SSH keys, this can facilitate authentication without...

---

<div class="post-metadata">

### Author: ![softperfect](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/b5ac83/32.png) [@softperfect](https://www.finalbuilder.com/forums/u/softperfect)
#### Post date: [May 27, 2022, 3:12am UTC](https://www.finalbuilder.com/forums/t/ssh-agent-support/7231/3 "2022-05-27T03:12:42Z")

</div>

Sorry I didn’t mean git, I was actually referring to **SFTP connect** and **SSH open connection** actions.

I use the former to upload software to our web-server and the latter to build on a remote machine. Now both these actions require a key file to be on a disk for key authentication, which is not very secure.

If these actions could make use of the agent, that would be great.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [May 27, 2022, 3:14am UTC](https://www.finalbuilder.com/forums/t/ssh-agent-support/7231/4 "2022-05-27T03:14:52Z")

</div>

I will look into it but not making promises - all depends on the client library - they don’t use open ssh or putty so not sure how they would use them.

---

<div class="post-metadata">

### Author: ![softperfect](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/b5ac83/32.png) [@softperfect](https://www.finalbuilder.com/forums/u/softperfect)
#### Post date: [May 27, 2022, 3:37am UTC](https://www.finalbuilder.com/forums/t/ssh-agent-support/7231/5 "2022-05-27T03:37:16Z")

</div>

It looks like you are using SecureBlackbox, in which case it should be possible - please see [this link](https://stackoverflow.com/questions/13896422/reading-a-private-ssh-key-from-pageant).

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [May 27, 2022, 4:02am UTC](https://www.finalbuilder.com/forums/t/ssh-agent-support/7231/6 "2022-05-27T04:02:05Z")

</div>

Yes we do, although planning to move away from secureblackbox very soon - so will need to confirm it can be done with whatever library we go with.

For SBB - all I could find is one line on this page

> **[SecureBlackbox 2020 .NET Edition Reference](https://cdn.nsoftware.com/help/SBF/cs/SSHClientType_SSHSettings.htm)**
>
> SSHSettings Type .NET Edition Reference

**UseAuthAgent**  
_Boolean_ Enables or disables the use of external key agent, such as Putty key agent.

I guess it just works if I set to true?

We do not have a current subscription with nsoftware so no support (for reasons I don’t want to go into here) - but I’ll see what I can find out.

---

<div class="post-metadata">

### Author: ![softperfect](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/b5ac83/32.png) [@softperfect](https://www.finalbuilder.com/forums/u/softperfect)
#### Post date: [May 27, 2022, 4:42am UTC](https://www.finalbuilder.com/forums/t/ssh-agent-support/7231/7 "2022-05-27T04:42:23Z")

</div>

Perhaps you could simply add a checkbox “Use agent” in the action, which will set this option and hopefully that’s all that is needed.

If you walk away from SBB that’s fine, but there is not much choice for Delphi. There is IPWorks SSH from the now-same vendor, then there is SecureBridge from DevArt. Otherwise it would have to be a DLL for an external implementation.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [May 27, 2022, 5:15am UTC](https://www.finalbuilder.com/forums/t/ssh-agent-support/7231/8 "2022-05-27T05:15:02Z")

</div>

We’re actually using the .net version of SBB (we host the clr) - I forget why as that choice was made a long time ago.

We are considering either [Rebex.NET](http://Rebex.NET) (which we use in Continua CI and know works really well and is fast) or Securebridge - I just looked the doco for both and there is no mention of using agents for auth.

More investigation needed, we don’t want to be adding a feature in FB8 that we could not implement in FB9.
