Skip to content
DocsTry Aspire
DocsTry

SftpContainerResource.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

Defined on

This method is defined on the following type: