In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
The following will describe how to set up the ubuntu virtual machine to allow other machines to connect remotely. The steps here are for ubuntu12.04.
Step 1: install the xrdp protocol
Sudo apt-get install xrdp vnc4server xbase-clients
Step 2: setting up remote sharing
Open Desktop Sharing in the / usr/share/applications directory and make the following settings:
* for ubuntu14.04 or above, secure access settings are required:
1. Install dconf-editor:
Sudo apt-get install dconf-editor
two。 Invert prompt-enabled and require-encryption:
Step 3: set iptables port mapping
Because the xrdp uses port 3389 to connect, but the external network can not directly connect to the ubuntu virtual machine, it is necessary to set the iptables port mapping in the host.
1. View the network information in the virtual machine:
Terminal call command: nm-tool
You can see the ip address and the gateway address.
two。 Set iptables port mapping rules
Iptables-t nat-I PREROUTING-d host IP address-p tcp-- dport 33899-j DNAT-- to-destination virtual machine IP address: 3389
Iptables-t nat-I POSTROUTING-d virtual machine IP address-p tcp-- dport 3389-j SNAT-- to-source gateway address
* 33899 in the first rule above is not fixed and any unoccupied port can be used.
Step 4: connect the ubuntu virtual machine using the remote connection tool
The address when connecting is: host IP address: 33899
* Note that port 33899 needs to be consistent with the port used in the previous iptables port mapping rules.
Through the above four steps, we can remotely connect to the virtual machine from the external network.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.