Rdesktop installation and use because the server I want to manage also has a windows operating system, you cannot use SSH for management only. What is rdesktop? Rdesktop: ARemoteDesktopProtocolClientforaccessingWindowsNTTerminalServer (Remote Desktop Protocol client of windowsNT terminal server) remember to enable remote assistance on windows before connecting. Then:
Rdesktop installation and use
Because the server I want to manage also has a windows operating system, I cannot use SSH for management.
What is rdesktop?
Rdesktop: A Remote Desktop Protocol Client
For accessing Windows NT Terminal Server (Remote Desktop Protocol client of windows NT Terminal Server)
Remember to enable remote assistance on windows before connecting.
Next, install rdesktop on CentOS:
Download the latest version of rdesktop from the official website,
Http://www.rdesktop.org
, The latest version: rdesktop 1.5.0, Source (211KB)
[Root @ lvdbing software] # tar-xvzf rdesktop-1.5.0.tar.gz (unzip)
[Root @ lvdbing software] # cd rdesktop-1.5.0;./configure
[Root @ lvdbing rdesktop-1.5.0] # make; make install (compile, install) Note: When installing CentOS, remember to install the development kit, otherwise the installation may fail
[Root @ lvdbing rdesktop-1.5.0] # ls-l/usr/local/bin/rdesktop
-Rwxr-xr-x 1 root 182708 Jan 14/usr/local/bin/rdesktop (confirm installation)
Finally: Test the connection
Write the selection script (because there are more than one running windows Server)
[Root @ lvdbing Desktop] # cat SelectHost. sh
#! /Bin/bash
Echo "Select Rmote Hostname :"
Echo "1): 192.168.1.30"
Echo "2): 192.168.1.40"
Echo "3): 192.168.1.50"
Echo ""
Echo "Please select remote host :"
Read host
Case "$ host" in
1) rdesktop-f-a 16 192.168.1.30
;;
2) rdesktop-f-a 16 192.168.1.40
;;
3) rdesktop-f-a 16 192.168.1.50
;;
*) Echo "Error, Please select 1, 2 or 3 :"
;;
Esac
# Option-f indicates full screen display, and-a 16 indicates that the display pixel is 16,192.168 .1.30, indicating the host name.
Use Ctrl + Alt + Enter to exit full screen.
Connection