Use Windows to remotely log on to Ubuntu

Source: Internet
Author: User
Tags ssh secure shell

Use Windows to remotely log on to Ubuntu

I. Ssh Logon
1. SSH is not installed in Ubuntu by default. You can search for SSH in the new profit software installer, Mark and install it;
Or run the following command:
Sudo apt-Get install OpenSSH-Server
Sudo/etc/init. d/ssh restart
SSH localhost

Use netstat-TLP to check whether the SSH service is enabled.

Display example: tcp6 0 0 [:]: SSH [:]: * listen

2. In ubuntu, choose system> preference> Remote Desktop.
3. In Windows, use putty or SSH Secure Shell client to log on. Enter the machine name or IP address, user name, port, and password to log on to the Ubuntu Terminal interface.

2. log on to the Ubuntu graphic interface
This is not about VNC. VNC has a defect that the desktop must be started on Ubuntu. However, the Linux host does not usually configure the display, so the desktop cannot be started at startup. The visual graphic interface in Linux is displayed, X Window System is the core. Now we will introduce how to enable the GUI normally when the server does not have a display, keyboard, or mouse, and log on remotely in windows.
1. Ubuntu settings
The simplest XDMCP method is used here. You need to modify the settings of the display manager. Specifically, You need to modify the configuration of the running agent. The configuration file of the target instance is stored in:/etc/TPD. conf. Use Sudo-I to obtain the permission first, and then use sudo gedit/etc/TPD. conf to open the file and modify enable = true in the [XDMCP] segment of the file so that you can log on remotely.
Restart the running command/etc/init. d/MCM restart to restart the system.

2. Steps in Windows
After the above modification, the server is ready, and now the client needs to be accessed in windows.
The X-win32 is used here. After the installation is complete, create an XDMCP connection and enter the IP address of the previous server.
Connect, And then you can see the logon screen.
X-win32 official Download Page

Download X-Win32 evaluation (http://www.starnet.com/products/do_download.php? Snuserid = 781438-4750 & downloadid = 163)
X-Win32 8.2 (for XP & Vista) (build 1215)
X-Win32 8.1 (for Windows 2000, XP & Vista) (build 1222)
X-Win32 7.1 (for Windows 95/98/ME/NT) (build 1579)
X-Win32 flash 8.2 (USB drive) (build 1215)
X-Win32 flash 8.2 (for USB drive) (build 1215)

Your trial license key (VN): 1740029-27543

If the key is incorrect, you can apply for an official registration.

Note that this method is to port X server in X Window System to a local machine through the network. The hardware parameters obtained by the server are from the local machine. Once the window is closed, it is equivalent to closing the X server session. Some running programs may be closed. This is different from remote logon in windows. In Windows, the remote logon session is disabled, and the program is still running. However, closing the X server session is similar to canceling windows.

Use Windows to remotely log on to Ubuntu

I. Ssh Logon
1. SSH is not installed in Ubuntu by default. You can search for SSH in the new profit software installer, Mark and install it;
Or run the following command:
Sudo apt-Get install OpenSSH-Server
Sudo/etc/init. d/ssh restart
SSH localhost

Use netstat-TLP to check whether the SSH service is enabled.

Display example: tcp6 0 0 [:]: SSH [:]: * listen

2. In ubuntu, choose system> preference> Remote Desktop.
3. In Windows, use putty or SSH Secure Shell client to log on. Enter the machine name or IP address, user name, port, and password to log on to the Ubuntu Terminal interface.

2. log on to the Ubuntu graphic interface
This is not about VNC. VNC has a defect that the desktop must be started on Ubuntu. However, the Linux host does not usually configure the display, so the desktop cannot be started at startup. The visual graphic interface in Linux is displayed, X Window System is the core. Now we will introduce how to enable the GUI normally when the server does not have a display, keyboard, or mouse, and log on remotely in windows.
1. Ubuntu settings
The simplest XDMCP method is used here. You need to modify the settings of the display manager. Specifically, You need to modify the configuration of the running agent. The configuration file of the target instance is stored in:/etc/TPD. conf. Use Sudo-I to obtain the permission first, and then use sudo gedit/etc/TPD. conf to open the file and modify enable = true in the [XDMCP] segment of the file so that you can log on remotely.
Restart the running command/etc/init. d/MCM restart to restart the system.

2. Steps in Windows
After the above modification, the server is ready, and now the client needs to be accessed in windows.
The X-win32 is used here. After the installation is complete, create an XDMCP connection and enter the IP address of the previous server.
Connect, And then you can see the logon screen.
X-win32 official Download Page

Download X-Win32 evaluation (http://www.starnet.com/products/do_download.php? Snuserid = 781438-4750 & downloadid = 163)
X-Win32 8.2 (for XP & Vista) (build 1215)
X-Win32 8.1 (for Windows 2000, XP & Vista) (build 1222)
X-Win32 7.1 (for Windows 95/98/ME/NT) (build 1579)
X-Win32 flash 8.2 (USB drive) (build 1215)
X-Win32 flash 8.2 (for USB drive) (build 1215)

Your trial license key (VN): 1740029-27543

If the key is incorrect, you can apply for an official registration.

Note that this method is to port X server in X Window System to a local machine through the network. The hardware parameters obtained by the server are from the local machine. Once the window is closed, it is equivalent to closing the X server session. Some running programs may be closed. This is different from remote logon in windows. In Windows, the remote logon session is disabled, and the program is still running. However, closing the X server session is similar to canceling windows.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.