Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux remote login to windows server

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

There are two common ways for linux to log in to the windows server remotely. One is to install software called VNC Server for windows so that linux can log in to the windows server through VNC. Another way is to connect to the windows server directly through the RDP protocol with the help of the existing client software under linux. Here's how to connect to a windows server using rdesktop using the second method. The first method will not be explained for the time being.

(1) first of all, to log in to the windows server remotely, you must first make sure that the windows server has the remote login feature enabled. You can turn on the settings options from computer-Properties-remote login. As shown in the figure:

In this tab, you should check "allow remote Assistance to link to this computer". Then select "allow computers running any version of remote Desktop" or "enter computer connections that allow remote desktops that use network-level authentication" in the remote Desktop below. If your computer can authenticate at the network level, the third option is undoubtedly more secure. If not, choose the second option. This section is referenced from the following web page: https://www.jianshu.com/p/91fb0b1c6815

For more detailed instructions, please refer to this page for yourself.

If the "allow remote Assistance to connect to this computer" option is checked, there will be a "ERROR: recv: connection reset" problem when running rdesktop to connect.

Here, I only checked the option "allow computer connections running any version of the remote desktop".

(2) install the client software rdesktop under linux.

The command sudo apt-get install rdesktop # can help you install rdesktop software automatically.

(3) next, you can connect to the windows server through rdesktop. You can connect to the windows server with the following command. Uesrname is the user name and ip-address is the ip address of the windows server.

Rdesktop-u username ip-address

The author uses the user wuweizhu to log in to the windows server with the address of IP 192.168.43.167. Use the following command: rdesktop-u wuweizhu 192.168.43.167. The login interface is shown in the figure:

Log in and you can operate the computer just like you did on window.

(4) here, let's talk about some of the problems that will be encountered in step 3:

Q1: can't find Windows's IP?

A1: you can refer to the website:

Http://10.0.0.211/?oriurl=http://jingyan.baidu.com/article/af9f5a2d0af64943150a455e.html

Here, readers enter "Network troubleshooting and sharing"-"change Adapter Settings" by opening the icon in the lower right corner of windows, as shown below:

Then double-click the network to which you are connected to view the details to see the IP address.

Where IPv4 is the IP address of windows.

Q2: can't connect to IP using rdesktop?

A2: obviously your IP is correct, and your settings are correct, but you can't connect. Don't worry, use the ping command to see if you can connect to windows on the command line, reconfirm that your IP is correct, and whether the Windows firewall is turned off? If you can ping it, you can basically connect it. If it really doesn't work, restart the machine. If you can't connect again, check to see if the windows server is configured under the default port 3389. If not, you should add a colon ":" and port number after the IP address when using the rdesktop connection.

For example: rdesktop-u wuweizhu 192.168.43.167lug 6666 # Port number 6666

Q3: incorrect password after connecting to windows?

A3: I've suffered a little here. It's clear that the password is correct, but I can't get on it. To this end, the author also restarts windows to verify that he is correct, embarrassed. The incorrect password prompt here is caused by the inconsistency between the user's name and the full name, which is made consistent by "computer"-"Administration"-"Local users and groups" changes. As shown in the figure:

At this point, you can log in to windows remotely through linux.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report