Changing directory with absolute path using Renci.SshNet SftpClient results in SftpPathNotFoundException
The problem was that the string returned from the RunCommand had whitespaces and all I had to do was this:
workingDirectory = getSSHWorkingDirectory.Result.Trim();
I have tried for two days to solve this issue and when I first posted this I got it to work 2 minutes later.