All About SSH in the bereveal.com webhosting service!

What is SSH, how do I activate and use SSH?

SSH, also known as Secure Shell, is a network protocol that creates a secured channel, which allows data to be transferred and exchanged between two hosts.

Basically, the Internet in its early days was designed to provide ease of use, not security.

SSH substitutes older protocols, such as telnet and rlogin, where passwords were passed in plain text and could be easily intercepted.

You can use SSH in order to connect to a remote machine and execute commands.

For example, you can import a database, find files and edit them.

A server-client environment is used when connecting via SSH. The connection is standardized at TCP port 22. 

What you need in order to connect is an SSH client software application. PuTTY is one of the most popular.

A server daemon is constantly checking for incoming requests.

So how can you obtain SSH access to your hosting account?
Buy a plan from here

Below are the plans link we are offering:

1. Django Hosting Basic
2. Premier Web hosting plan
3. Value Web hosting plan
4. Advanced Web hosting plan
5. Basic Web hosting plan

First, check whether SSH is enabled for your web hosting plan - navigate to the Advanced section of your Control Panel and check for the SSH/Shell Access option. If you don't see this option, it is not included in your web hosting plan.

If it is enabled for your web hosting plan, you will see the SSH/Shell Access option and the status will be either ''Active'' or ''Not Active''.

Click on the ''Activate'' button.

A message such as the one below indicates that SSH is not included in your web hosting plan:

Your hosting plan type does not allow an additional SSH service to be added! Please refer to the ''Account Usage'' table on the left.

You might need to upgrade your plan features by using the ''Add or Upgrade Services'' section.

In this case, you can order SSH as an upgrade from the "Add or Upgrade Services" link on the left.

Once you have SSH activated, all you need is an SSH client (e.g. PuTTy), a username and a password.

The username is the same as the one that you use to log into your Control Panel.

The password could be easily set from the Advanced > SSH/Shell Access section.

If you choose to use PuTTy, set the SSH host/server to ssh.supremecenterXX.com (replace XX with the number of the server where your account is located - you can see it in the address bar/URL bar when you are logged into your Control Panel).

The following commands can be used with SSH:

ls - lists the content of a directory
Example usage:
ls

dir - works the same way as "ls"
Example usage:
dir

cd - changes the current directory
Example usage:
cd new-directory - enters in directory "new-directory"
cd .. - enters in the upper directory

rm - removes files or directories
Example usage:
rm filename.txt
 – removes the file "filename.txt"
rm -rf directory-name – removes the directory "directory-name" including its contents

mv - moves or renames files or directories
Example usage:
mv filename.txt ../ - moves "filename.txt" to the upper directory
mv filename.txt filename.old - renames "filename.txt" to "filename.old"

find – searches for files and directories
Example usage:
find . -name ''filename'' - finds all files with the name "filename" in the current directory and its subdirectories
find . -name ''*filename*'' - finds all files containing "filename" in their name in the current directory and its subdirectories

grep - searches for text strings in files
Example usage:
grep ''text-string'' file.txt
 – searches for the string "text-string" in the file "file.txt"
grep -r ''text-string'' – searches for the string "text-string" in the current directory and its subdirectories

wget - downloads files from remote servers
Example usage:
wget http://my-best-domain.com/file.zip - downloads the file located at "http://my-best-domain.com/file.zip" in the current directory
wget ftp://my-best-domain.com/file.zip - downloads the file located at "ftp://my-best-domain.com/file.zip" in the current directory

zip - zips files and directories
Example usage:
zip archive.zip filename.txt - zips "filename.txt" in "archive.zip"
zip -r archive.zip directory-name/ - zips "directory-name" and its subdirectories in "archive.zip"

unzip - unzips files and directories
Example usage:
unzip archive.zip - unzips the content of "archive.zip" in the current directory

tar - archives and unarchives files and directories
Example usage:
tar -cf archive.tar filename - archives "filename" in "archive.tar"
tar -cf archive.tar directory-name - archives "directory-name" and its subdirectories in "archive.tar"
tar -xf archive.tar - extracts "archive.tar" in the current directory

Also, SSH can be used for importing and exporting MySQL databases. In order to import a database, you need to use the following command:

mysql -hserver_name -udatabase_username -pdatabase_password database_name < database_dump.sql

The export can be done with the following command:

mysqldump -hserver_name -udatabase_username -pdatabase_password database_name > database_dump.sql

where "server_name" is the name of the server (for example, supremecenter100.com or localhost), "database_username" is the database username, "database_name" is the database name (it is the same as the database username), "database_password" is the password for the database and "database_dump.sql" is the name of the dump file which contains (or will contain in the case of an export) the data.

Post a Comment

Previous Post Next Post