In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
As a server-level operating system, linux fully considers the problem of remote login. It is very convenient to log in to linux from linux, windows or some other operating systems. This paper introduces how to log in to a remote linux server using linux and windows.
1. The linux system logs in to the remote linux server:
There are many different protocols to choose from, and perhaps SSH is the "best". SSH is the abbreviation of secure shell, which means "safe shell". As an alternative to ancient remote login tools such as rlogin, rcp, and telnet, SSH authenticates the user's identity and encrypts the communication between the two hosts. SSH takes into account all kinds of potential risks in its design, and gives effective protection measures.
Here's how to log in to another linux server from linux using SSH.
(1) first, install OpenSSH first. Use the following command to install OpenSSH:sudo apt-get install ssh automatically.
(2) secondly, with a user account of the remote server, the author creates a server user on this side of the server, sets his password to server, and modifies the / etc/sudoers configuration file to give it temporary access to root. As shown below:
(3) below, you can log in to the remote linux server with this command: ssh-l login_name hostname. Here login-name refers to the user account, and hostname refers to the server hostname or IP address. The server IP address can be viewed through "system Settings"-"Network" in the upper right corner. As shown in the figure, the IP address of server is 192.168.43.80.
Log in to the linux server:
In this way, log in to the host of 192.168.43.80. When logging in, SSH will ask the user to log in to the server user's password. Here, the author uses a key pair to log in, and SSH will not ask for the password.
Log in directly by checking the matching of the secret key pair. When you log in for the first time, SSH may prompt for the authenticity of the key and ask if you want to continue to establish a connection. Just answer yes to continue.
After logging in to the server host, you can do what you want, and when the work is done, you can use the exit command to end the SSH connection to the remote host.
The SSH server is enabled on port 22 by default. If the SSH service on the server side is not enabled on port 22, you can specify the port to connect to through the-p option of SSH.
Example: ssh-l server-p 202 192.168.43.8 connected to port 202.
(4) if you need to run the X application on the remote host, first make sure that the server opens the X window system, and then use the SSH command with the-X parameter to display and start the X forwarding function.
Example: ssh-X-l server 192.168.43.80
Firefox
Executing firefox,SSH after logging in will fully transfer the firefox interface on the server to the local. If the distance between the two hosts is long, or if the network is not ideal, it will be slow to transfer an X application, but it should eventually appear on the local screen. The picture has been posted here, because it is the same as opening the firefox program on your host, but the firefox on the server is open. if you open firefox on the server at this time, the server will show that firefox is open or busy.
(5) Log in directly through the X window: use VNC directly here. The server is required to run an X window system, and related services and ports are opened. Before connecting, the VNC configuration file is now generated in the directory of the remote host. Use the following commands in turn:
Ssh-l server 192.168.43.80
Vncserver# requires the user to set a remote access password during this process
The author did not take a screenshot when setting up, which was embarrassing.
After setting up, execute the vncviewer ip-address:1 (desktop number) command directly in the terminal, and you can log in with the X window.
2. Log in to linux remotely from windows
(1) there are several different SSH clients on windows, of which the open source PuTTY is the most widely used. Download PuTTY. Run. As shown in the figure:
Enter the IP and port number, and then click open to connect.
The first connection will appear as the dialog box above, click Yes.
After connecting and logging in, it is as follows:
Winodws can also be graphically connected through VNC, and readers can download, install and use it by themselves.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.