Method UploadFileAsync
UploadFileAsync(SshClient, string, string, SshScpOptions?, CancellationToken)
Uploads localPath to remotePath (a file, or an existing directory to put it in).
public static Task UploadFileAsync(this SshClient client, string localPath, string remotePath, SshScpOptions? options = null, CancellationToken cancellationToken = default)
Parameters
clientSshClientlocalPathstringremotePathstringoptionsSshScpOptionscancellationTokenCancellationToken
Returns
Exceptions
- SshException
The remote scp refused or failed (TransferFailed).