How to SSH a Virtual or Dedicated Server (Linux)

SSH is a tool used to connect to your server.   This is how the majority of your system is setup.

To use ssh, you'll need an ssh client for your local computer.  We recommend PuTTY.

Once you've installed your ssh client, load it up and you should be given a space to enter some information.  You'll want to select "SSH" on port 22.  You can paste in the Hostname of your server "name.domain.com" or the ip "1.2.3.4" in the the space that says "Host Name (or IP Address)".  Click Open.

If you've entered all info correctly, you should be prompted with a large black screen asking for your login information.  If you are doing system tasks, you'll probably need root access.  If you have root access, enter "root" and press enter. Sometimes, it can take several seconds before you see any change.   Enter the root password (and press enter), and if everything works, you should see a command prompt, ex:

[root@server]#

You are now on the server. This is your starting point.


From here you can do anything, including destroy your server, so you must be very careful with the commands you enter.

Some basic commands include:

List: ls

[root@server]# ls
file1.txt   file2.txt   file3.txt

 


Change Directories: cd

 

[root@server]# cd /home/admin

 


Remove a file: rm

 

[root@server]# rm file1.txt
rm: remove `file1.txt' ? y

 


Once you've finished working, you can type

 

[root@server]# exit

and the ssh window should be closed.

Was this answer helpful?

 Print this Article

Also Read

Locating php.ini file

A critical file you often need to manage is the php.ini file. It controls many import aspects of...

Remove STRICT_TRANS_TABLES in SQL Mode for WHMCS

WHMCS requires a setting on the MySQL or MariaDB server for the SQL Mode. To verify this, log...

Disable Network Manager on CentOS 6

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is...

Removing cPanel Accounts with /scripts/removeacct Script

The /usr/local/cpanel/scripts/removeacct script terminates cPanel accounts from the command line....

Disable Network Manager on CentOS 7

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is...