public string Execute() { return EndExecute(BeginExecute(null, null)); }
private int GetUserId() { using (var cmd = new SshCommand(Session, "id -u ")) // Thease commands seems to be POSIX so the only problem would be Windows enviroment { cmd.Execute(); return cmd.ExitStatus == 0 ? Int32.Parse(cmd.Result) : -1; } }