Where????
static void Main(string[] args)
{
string host = "*.*.*.*";
string username = "test";
string password = "********";
string localFileName = "C://TEST.CSV";
string remoteFileName = System.IO.Path.GetFileName("t.CSV");
Console.ReadLine();
SshClient sshClient = new SshClient(host, 22, username, password);
sshClient.Connect();
using (var sftp = new SftpClient(sshClient.ConnectionInfo))
{
sftp.Connect();
using (var file = File.OpenRead(localFileName))
{
sftp.UploadFile(file, remoteFileName);
}
sftp.Disconnect();
}
}