# Connection and trust

Connection and trust on Evotec with installation guidance, setup notes, reference details, and project documentation.

Project

Transferetto

Small PowerShell module with FTPS/SFTP functionality

[View on GitHub](https://github.com/EvotecIT/Transferetto) [Visit Website](#) [Releases](https://github.com/EvotecIT/Transferetto/releases/tag/Transferetto-v2.0.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/Transferetto)

Stars**93**

Forks**18**

Open issues**0**

PowerShell Gallery downloads**14067470**

Release**v2.0.4**

Language: C# Updated: 2026-11-18

Documentation

How to think about credentials, private keys, host-key policy, and proxies in Transferetto.

Transferetto is most useful when the trust model is explicit. The cmdlets support multiple connection styles, but the best choice depends on the protocol and the environment you are automating.

## Credentials and keys

- Use `Get-Credential` when a PowerShell workflow should avoid embedding secrets in source.
- Use username and password parameters only for controlled local testing or generated configuration.
- Prefer SSH private keys for SFTP, SCP, and SSH when the target environment supports them.
- Keep proxy credentials separate from target credentials so the script stays clear about which hop each secret belongs to.

## SSH and SCP trust models

Transferetto exposes several host-key trust options through `Connect-SSH` and `Connect-SCP`:

- `-ExpectedHostKeyFingerprint` for explicit fingerprint pinning
- `-HostKeyPolicy KnownHosts` with `-KnownHostsPath` for strict pre-seeded validation
- `-HostKeyPolicy TrustOnFirstUse` for environments where you want first connection persistence but still avoid silent drift
- `-AcceptAnyHostKey` only for disposable test systems

For production servers, prefer a pinned fingerprint or a managed known-hosts file. That makes host identity reviewable and avoids surprise trust changes later.

## FTP and FTPS trust considerations

- Use FTPS when the remote side supports it and the workflow needs encrypted transport.
- Review certificate behavior explicitly when connecting to internal or lab systems.
- Proxy and profile options are useful for older endpoints, but they should still be documented in the script so the connection path is visible.

## Proxies, bastions, and tunnels

- FTP and FTPS support proxy-aware connection options.
- SSH and SCP support proxy configuration directly on connect.
- When a service is only reachable from the server itself, use an SSH tunnel instead of exposing the service publicly.

## Practical guidance

- Keep the connection object creation near the top of the script.
- Make the trust model readable in the script itself.
- Disconnect explicitly when the workflow is finished.
- Use examples as patterns, not as places to hard-code real production secrets.

## Related pages

- [SSH management guide](../ssh-management/)
- [SFTP and SCP workflows](../sftp-and-scp-workflows/)
- [Enforce SSH host-key policy example](/projects/transferetto/examples/enforce-ssh-host-key-policy/)

<!-- PowerForge markdown artifact sha256:6DCB205A12727583654EAA2EE6E8C1EA02B6C79DFC6AD209427AB265A23D8874 -->
