sftp settings premakjen

This commit is contained in:
David Štaleker
2024-09-11 06:07:11 +02:00
parent 1dc48d2d85
commit 34a081e8f9
4 changed files with 8 additions and 50 deletions

View File

@@ -49,6 +49,11 @@ namespace InfosysPublisher
private string _selectedProjectVersion = "";
private string _selectedProjectGuid = "";
private static readonly string SftpServerAddress = "192.168.111.75";
private static readonly int SftpPort = 300;
private static readonly string SftpUsername = "InfosysUpdate";
private static readonly string SftpPassword = "v&H6c$wTbTkgSgdWvL*8k$st3#z5X";
private const string SftpArchivePath = "Archive";
public WinMain()
{
@@ -341,8 +346,7 @@ namespace InfosysPublisher
{
try
{
using var sftpClient = new SftpClient(App._application.SftpServerAddress, App._application.SftpPort,
App._application.SftpUsername, App._application.SftpPassword);
using var sftpClient = new SftpClient(SftpServerAddress, SftpPort, SftpUsername, SftpPassword);
sftpClient.Connect();
if (!sftpClient.Exists(_selectedProjectPublishLocation))