Skip to content
DocsTry Aspire
DocsTry

withHostKeyFile

Method
📦 CommunityToolkit.Aspire.Hosting.Sftp v13.4.0
interface SftpContainerResource {
// ... omitted for brevity
withHostKeyFile(
keyFile: string,
keyType: KeyType): SftpContainerResource;
}

Signature

methodwithHostKeyFilebuilder
Adds a bind mount for the specified host key file to an SFTP container resource.
withHostKeyFile(
keyFile: string,
keyType: KeyType): SftpContainerResource
keyFilestring
keyTypeKeyType
SftpContainerResource

Applies to

This method applies to the following types: