You are currently viewing How to access Command Line (SSH/CLI)?

How to access Command Line (SSH/CLI)?

Access the command line

This toturial will show you how to access your server’s SSH CLI to maintain an advanced management. To access your server from the command line, perform the following steps:

  1. Use the correct method for your computer’s operating system to open the CLI:
    • Microsoft Windows® — Open the Command Prompt program. To do this, click Start and enter Command Prompt in the Search text box. Double-click Command Prompt in the list that appears.
    • macOS® — Open the Terminal program. To do this, click the Applications icon in the dock, click the Utilities icon, and then click the Terminal icon.
    • Ubuntu — Open the Terminal program. To do this, press the CtrlAlt, and T keys simultaneously.
  2. Your CLI program opens with access to the local computer. You must use SSH to access the cPanel & WHM server. To do this, enter the following command and press Enter:
    ssh username@hostname

    In this comment, username is your account’s username and hostname is the server’s hostname. For example, to log in as the root user on the example.com server, run the following command:

    ssh root@example.com

     

  3. The CLI prompts you for the account’s password. Enter it and press Enter.
  4. The CLI’s display will appear similar to the following example:
    1
    2
    3
    4
    5
    
    Last login: Fri Feb  6 12:50:38 on ttys000
    MyComputer:~ myname$ ssh username@example.com
    Password:
    Last login: Fri Feb  6 12:52:33 2015 from 10.1.4.202
    username@example [~]#

    You can now navigate the server’s file system and run commands, within the limits of your account’s permissions on the server.

 

If you’re using Windows 7 or earlier, you have to use SSH client software to access your server, a VPS.

 

SSH Clients

 

Conclusion

The methods and processes outlined in this article will work for the vast majority of users and versions of the Linux and Windows operating systems. With Linux or Windows, you should now be able to connect to a remote server. Of course, there are many other ways to link two remote computers, but the ones discussed here are the most frequent.

Leave a Reply