ScpReceive.cancel

void cancel()

Cancels caller interest in this transfer. Terminal: the operation fails with a cancellation error and removes the destination file it created.