CentOSVPS tutorial (1) VPS logon

Source: Internet
Author: User
Tags centos vps vps server
CentOSVPS tutorial (1) VPS logon currently, most VPS are Linux, and the CentOS release is usually installed. Linux server login is different from Windows Server remote login, usually not supported by remote desktop, that is, not graphical, but console-based... centOS VPS tutorial (1) currently, most VPS are Linux, and the CentOS release is usually installed. Linux server logon is different from Windows Server remote logon. generally, Remote Desktop is not supported. that is to say, it is a console-based remote operation instead of graphical logon. Linux remote logon usually uses ssh (secure shell), which is a reliable application layer protocol. How to Use ssh to log on to vpsLinux or other Unix-like systems. if you are using a Linux release or other Unix-like operating systems (such as Mac OS and FreeBSD), you do not need to download additional software, you can use the shell that comes with the system for remote logon. The following is a logon example of the most common Bash (shell) (note that the $ character does not need to be input, and it represents a common user. when the # Character appears below, it is run as administrator root permission), 1 $ ssh root@192.168.1.1 where root represents the login username, 192.168.1.1 for the host IP address, of course, you can also use the host name, domain name to refer to the IP address. If the user defaults to 1 $ ssh 192.168.1.1, the user will log on with the user name of the current client. Windows is used to log on to the Linux server with putty. Although the putty interface seems complicated, it is enough to complete simple remote login only by operating the main interface. After the download, you can open it directly. there is an input box named Host name or IP address in the middle. enter your VPS server Host name or IP address. if you want to specify a logon user, you can add "username @" to the host @". The Save button below can help you Save the login information. you can enter a name in the input box below the Saved Sessions and Save it in the following list. you do not need to enter the name next time you log on, click load to load the file. Use the default Port and Connection Type. Click Open to connect. How to Use ssh to manage VPSvps logon verification the above two methods are described for logging on to vps through ssh on the client. The following describes vps logon verification. When you connect to your vps server using the above method, you will be prompted to enter the password. Upon first login, the vps seller will give you the password required to log on to the root user, and enter the password to log on to the host. The next step is to modify the initial password of the root user. 1 $ passwd enters the above Command and the system will prompt you to enter the password twice separately. This completes the password modification. However, it is very troublesome to enter a password to log on. Is there a way for the server to determine my identity, without having to enter a password to directly pass authentication? In addition to password verification, ssh also provides a public/private key verification method. The client generates a private key, generates a corresponding public key, and then uploads the public key to the server. The following is a Linux example. when the client generates a private key and a public key (note that this is done on the client), you will be prompted to enter the encryption password of your private key during 1 $ ssh-keygen-t rsa. After the configuration is completed ~ The two files id_rsa and id_rsa.pub are generated under the/. ssh/path, which are the private key and public key respectively. Next, you need to upload the generated public key to the server and execute the following code on the client: 1 $ ssh-copy-id-I ~ /. Ssh/id_rsa.pub root@192.168.1.1 where root can modify the server user name you want to automatically log on to, 192.168.1.1 modify your VPS host name or IP address. Finally, ssh login remote server, 1 $ ssh root@192.168.1.1 at this time you do not need a password to log on.
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.