Sunday, September 28, 2014

VPS for WordPress basics [Part 2] - Login to the VPS

Welcome formally entered the exciting world VPS but equally difficult new beginning. If you're worried about where to find a VPS to practice very simple, you have a choice of the following to get the cheapest one VPS to practice:
  • Registration and $ 10 in loaded DigitalOcean , from which you can create and use the VPS. When not in use you can delete and it does not deduct anymore.
  • Sign up for $ 25 / year BudgetVM and just practice, just use. When practice is done, you can reinstall the operating system and use.
$ 10 or $ 25 is just not a large amount so that you get the best knowledge about VPS right? Although you can use the software to create a virtual machine like VMWare, VirtualBox, but in the first post I will not mention it to avoid the "overload" of knowledge.

Contents content

I. Prepare VPS to practice
II. Get familiar with a VPS Management Control Panel
2.1) Boot, Reboot
2.2) Change the root password feature
2.3) Reinstall - Reinstall OS
2.3) Change Hostname
III. Login to the VPS via SSH protocol
3.1) Login to SSH on Windows
3.2) at SSH Login on Linux (Ubuntu / Mac)
Epilogue

I. Prepare VPS to practice

In this series, I have a VPS you will need to practice the following:
  • CentOS 6.5 (64 or 32 bits)
  • Login Information username is root with root

II. Get familiar with a VPS Management Control Panel

When you buy any VPS Where, they also allow you to manage your VPS just bought in a separate control panel. Control panel does not have the tools to assist you further into the website to install WordPress, but it will be very important features that you need to know to be used for the right purpose.
VPS Management Control Panel DigitalOcean
VPS Management Control Panel DigitalOcean
Although each vendor has a different control panel, but overall it are akin to each other in function and usage, and it also has a few features that you should be careful because it can use it will delete all your data is there.

2.1) Boot, Reboot

Some providers are using Boot words, some text, then use the Power Off, Power Cycle, but it will have the same functionality is turned off support your server.
  • Boot (Power On) : This function will be used if your VPS is in offline status to boot it up.
  • Power Off (Shut Down) : Used to turn off the VPS, and can use Boot feature to open it up again.
  • Reboot (Restart, Power Cycle) : Restart the VPS.

2.2) Change the root password feature

Most of all VPS control panel now supports user self-restore root password (user-level to manage VPS) case can not SSH access to change manually.

2.3) Reinstall - Reinstall OS

This is a feature that can be in this series you will learn much used to support practice practice goes back to the master, but be cautious when using because after reset, the data on the VPS you will be "gone with the wind" is not goodbye.
The process of installing the operating system on a VPS fully automatic, just use and need to reinstall the operating system. After reset, the root password will be reset and sent to you via email. If they do not send a new root password via email, please use the password recovery feature in the control panel root.

2.3) Change Hostname

Change Hostname (hostname change) will be available on most current control panel so you can change without having to log into the VPS. Hostname is a preferred address for your VPS, however the hostname is probably not used very much necessary that you can name it whatever.
Often looks hostname is xxx.domain.com (eg vps.thachpham.com). If you want to use the hostname instead of the IP address of you, then you have to create an A record for the subdomain address of the hostname and the IP value of VPS.

III. Login to the VPS via SSH protocol

SSH stands for Secure Shell, a protocol that is connected to a particular server securitythan using the default port is 22, but in the post I will show you how to change the port for security. SSH is a protocol that it will follow your own during use Linux VPS, the VPS from the establishment to watch the activity on the VPS you have to use SSH (if you do not want to use a software support assistance to UI controls).
In the SSH protocol, you will work with the server on UNIX environment to control it using the command line (aka Linux Command - Linux CLI).
To log into your VPS SSH 2 ways.

3.1) Login to SSH on Windows

Because Windows is an operating system kernel should not use to on SSH you need a software called SSH client . The most popular SSH client is now very easy to use calledPuTTY , you can download and run immediately without installation.
After opening up the PuTTY software you will see the window as shown below.
progress-nhap-vps-putty
Even in categories that you will fill out the rubric of VPS IP (or hostname if the IP point), the port you leave if you do not change the SSH port, then click the Open button to login.
Shortly after the Open button, a window pops up and if black first login will have a bulletin board out like this:
Notify login first to VPS via SSH
Notify login first to VPS via SSH
This message means that your computer detects a connection to a server that lead is not present in the list of hosts allowed in the registry, so press Yes to the next it does not ask anymore.
Note : If you proceed to reinstall the VPS, it will ask for a key fingerprint will be changed after reinstalling the OS or changing VPS.
After pressing Yes, it will start asking you to login username. Here you type in the root to login with an account that has the highest authority. Finished typing, press Enter.
ssh-putty-loginasroot
Next it will ask for a password of VPS, you type the password corresponding to the username that you need to sign in, here is the password of user root (also called the root password ).
In SSH, when you type the password it will not show up then you knock exact Enter only.
Tips : If you need to copy a password, please copy and paste into the command line using Shift + Insert.
If you use a VPS in DigitalOcean they first log into the VPS it will ask you to change the root password. Please type the root password present in and Enter, then type the new password and press Enter, and type it again and enter.
Tips : The Linux Command Line, each segment commands will be executed when you press Enter.
Tips : Type clear and press Enter to delete the paragraph commands typed to a more compact window.
After successfully logging in via SSH, you will see the following:
ssh-putty-loginsuccessful
In particular, the root word is the left sideline user name you are logged in, but vpscanban letters after the @ symbol is the hostname, tilde (~) means that you are in the current directory of the user that you are log (each user has a separate folder), and the # sign means distinguishing characters of each line.
Come on, try typing the first Linux commands with keywords is ls -al see, if it is executed, it will display a list of files together CHMOD as shown below. That means you're in your VPS already.
An example implementation of a Linux command
An example implementation of a Linux command
Wait just wondering what the other is meant, we will learn slowly in later sections.

3.2) at SSH Login on Linux (Ubuntu / Mac)

If you are using Linux operating system for your computer as Ubuntu or Mac, you will not need any software at all that we will use Terminal app is available in the operating system.
Please turn up Terminal and type ssh-l root IP-VPS's , in which:
  • root is the username of the account you need to login. Here is the root.
  • l is the option to enter user login name, its value is the root above.
  • IP-of-VPS's IP range of your VPS server.
For example:
ssh-linux-login
After you enter it will ask if you want to add fingerprint of this VPS on the machine or not, type yes and enter to agree, then enter the password is complete.
If you use a VPS in the first DigitalOcean log on to VPS it will ask you to change the root password. Please type the root password present in and Enter, then type the new password and press Enter, and type it again and enter.
ssh-linux-login-successful
In particular, the root word is the left sideline user name you are logged in, but vpscanban letters after the @ symbol is the hostname, tilde (~) means that you are in the current directory of the user that you are log (each user has a separate folder), and the # sign means distinguishing characters of each line.
Ok, try typing ls -al see if it works by show the full list of file and folder permissions of it together. If there is success.
ssh-linux-login-testcommand

Epilogue

In this article we learn together through logging into a VPS via SSH protocol and certainly later, if you listen to " go to SSH command ... "or" type the following command on VPS "is just that that will log into SSH and typing this post.
In the next article, I will guide you how to work with files, folders, move folders using basic Linux Command Line so you can proactively manage the files on the VPS.

1 comment:

  1. Many thanks for the exciting blog posting! I really enjoyed reading it, you are a brilliant writer. I actually added your blog to my favorites and will look forward for more updates.
    VPS

    ReplyDelete