Skip to content
Docs Try Aspire
Docs Try

SftpContainerResource.withUserKeyFile

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

Signature

method withUserKeyFile builder
Adds a bind mount for the public key file of the specified user to an SFTP container resource.
withUserKeyFile(
username: string,
keyFile: string,
keyType: KeyType): SftpContainerResource
username string
keyFile string
keyType KeyType
SftpContainerResource

Defined on

This method is defined on the following type: