如何使用远程服务器中的凭据连接到文件夹

How to connect to a folder with credentials in remote server

我试图将文件从我 PC 中的特定库复制到远程服务器中的库, 我的问题是我需要使用什么来建立连接?哪个命令? 它应该是 sql 连接吗?

我使用模拟来解决这个问题

new Impersonator(usr_name_source, domain_source, password_source)