Windows how to remotely access linux

  
                                                                                                                                                                                         

Remote login is often encountered in our work. If it is MS's windows
, it is relatively simple. MS has developed a tool specifically for this application: Remote Desktop Link. You can start it by starting - "Programs -> Attachments -> Remote Desktop, or typing mstsc /v xxx.xxx.xxx.xxx directly in the run. Here xxx.xxx.xxx.xxx is replaced with the actual you want The IP of the linked machine is OK (you must first ensure that you can ping the machine you want to connect).


The main thing we talk about here is how to go to linux system such as ubuntu.


1. Telnet access.

This method is not recommended, because the contents of telnet are sent in plain text, and we need to enter the username and password when logging in to linux remotely. This is easy to control by others.


2. SSH, this method is safer.

We use ubuntu as an example to illustrate how to link.


Ubuntu installs the SSH server by default. If it is not installed, use the following installation:


sudo apt-get install openssh-server< Br>


Then restart the server

sudo /etc/init.d/ssh restart


Check if the installation is successful:< Br>

netstat -tlp

If there is a line showing

tcp6 0 0[::]:ssh [::]:* LISTEN then the ssh server is successfully started. Br>


Download the client tool, putty.exe, on the windows side. Go to the official website to download, the URL is http://www.putty.org/

This tool does not need to be installed, run directly.

Enter the IP address of the remote linux machine in the corresponding location of the host name (of ip address). The default port is 22, and then click open. If the link is successful, you will be asked to enter the username and password.

Next you have linked to the remote machine.


If you want to view the file through the resource manager under windows, you need to install samba. The command is as follows:

$ sudo apt-get install samba


$ sudo apt-get install smbfs


Adding samba users:


$ sudo smbpasswd -a username


Then modify the samba configuration file /etc/samba/smb.conf


[global]workgroup=workgroupserver string=ubuntusecurity=share

< Br>

[windows]path=/home/xxxvalid users=xxxpublic=yeswritable=yes


Restart samba after configuration is complete

smbd restart
files


Then you can directly access the remote machine shared by //xxx.xxx.xxx.xxx below the windows of



Copyright © Windows knowledge All Rights Reserved