2013-09-25 1 views
0

rdp에 대해 C#으로 개발하는 동안 기본적으로 MSTSCLib를 사용합니다. 하지만 리눅스를 연결이 DLL은 지원하지 않습니다. 그래서, dll은 Windows에서 Linux로 C# 응용 프로그램으로 rdp에 사용해야합니다.Windows에서 Linux로 C# .net을 사용하여 원격 데스크톱 연결

공간 SampleRDC { 공용 부분 Form1 클래스 : 폼 { 공개를 Form1() { 의 InitializeComponent(); 창, 당신은 윈도우 넣어에서 리눅스 머신에 RDP 수 없습니다

+0

도구, 라이브러리 또는 좋아하는 오프 사이트 리소스 **를 추천하거나 찾도록 ** 요청하는 질문은 오탈 된 답변 및 스팸을 유치하는 경향이 있으므로 스택 오버플로 관련 주제와 관련이 없습니다. 대신, [문제 설명] (http://meta.stackexchange.com/q/139399/) 및 지금까지 해결 된 사항은 무엇입니까? – hakre

답변

0

Putty에서보세요 원격 데스크톱을 통해 리눅스하기 위해 작성하는 방법이 프로그램에 따라 }

private void button1_Click(object sender, EventArgs e) 
    { 
     try 
     { 
      rdp.Server = txtServer.Text; 
      rdp.UserName = txtUserName.Text; 

      IMsTscNonScriptable secured = (IMsTscNonScriptable)rdp.GetOcx(); 
      secured.ClearTextPassword = txtPassword.Text; 
      rdp.Connect(); 
     } 
     catch (Exception Ex) 
     { 
      MessageBox.Show("Error Connecting", "Error connecting to remote desktop " + txtServer.Text + " Error: " + Ex.Message,MessageBoxButtons.OK, MessageBoxIcon.Error); 
     } 
    } 

    private void button2_Click(object sender, EventArgs e) 
    { 
     try 
     { 
      // Check if connected before disconnecting 
      if (rdp.Connected.ToString() == "1") 
       rdp.Disconnect(); 
     } 
     catch (Exception Ex) 
     { 
      MessageBox.Show("Error Disconnecting", "Error disconnecting from remote desktop " + txtServer.Text + " Error: " + Ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error); 
     } 
    } 
} 

}

당신은 SSH라는 프로토콜을 사용할 수 있습니다. GUI가 없으며 모든 것이 텍스트 기반입니다.

0

RDP는 Windows에서 기본입니다. Linux를 RDP 서버로 사용하려면 XRDP (http://sourceforge.net/projects/xrdp/)를 확인하십시오.

Linux의 경우 SSH (Putty가 지원)를 사용할 수 있습니다. 또 다른 옵션은 대부분의 Linux 배포판에서 지원하는 VNC 서버를 활성화하는 것입니다.

관련 문제