Accessing Linux command line from MacOS and Linux desktop

When you first create a new Linux server without a control panel, you receive the ‘root’ password inside a popup message during creation. Please remember that your password is only displayed once. Do not forget to save your password since it will not be shown to you again.

Sadly, often people forget the ‘root’ password to their server. Luckily, we have added the ability to change the ‘root’ password from inside your managed control panel. Though the password is easy to change, please remember that the password can only be changed if you stop all services on your server to make the change and then after the change restart your server.  After you start the process to update your password, the system will display your new password to you, similar to how it was displayed when the server was created. Please remember that your new password is only displayed once to you. Do not forget to save your password since it will not be shown to you again.

On the Linux server, you have the option to run it with or without a control panel when you set it up. If you decide to setup your server without a control panel, you can access it using SSH. SSH, or Secure Shell, is used to log into servers from a remote location securely. The protocol can provide you full access to the server, allowing changes to be made directly on the server.

Using the same root password that was provided you during the creation of your server, you can establish a secure connection to your server using SSH from your local computer. The operating system of your local computer will determine how you connect to the server using SSH.

SSH connection to a Linux server from MacOSX

Using the same root password that was provided you during the creation of your server, you can establish a secure connection to your server using SSH from your local computer. The operating system of your local computer will determine how you connect to the server using SSH.

For MacOSX users, you can find the Terminal in several ways:

  1. Terminal can be found by going to Applications > Utilities, and then open the Terminal program that looks similar to the icon above.

  2. MacOSX users can also open LaunchPad and search for the program “Terminal.”

  3. MacOSX users can also perform a Spotlight search using the keyword “Terminal.”

Once Terminal has been opened, type in the following command to connect to the Linux Cloud Server.

# ssh root@1.1.1.1

Please remember that the IP 1.1.1.1 is only an example. To connect to your server, you will have to replace the IP 1.1.1.1 with your server IP address that you are attempting to connect to.

The word ‘root’ is the username to access the server. Connecting using the ‘root’ user, allows you to gain root level access to your server. By default, the ‘root’ user is the only user configured on your Linux server. If you are attempting to connect to your server using a non-root user, please replace the username ‘root’ with your desired user.

After you have entered your server login information, Terminal will request that you verify you are authorized to log into your server. Terminal will provide you the following message:

“Are you sure you want to continue connecting (yes/no)? Yes”

To continue on logging into your server you must type in the word “Yes.” If you type in the word “No” you will be directed back to your normal terminal display window.

After entering “Yes” you will need to provide your ‘root’ user password to continue logging into your server. As you are typing the password, it will not be displayed to you in your Terminal screen provides you a completely secure connection. Since you cannot see your password, please remember to pay close attention to enter the correct letters, digits, and symbols into your terminal window.

After you have entered your ‘root’ user password, you will be logged in to the Linux Server.

Using Terminal on Linux desktop systems

Using Linux desktop, you can search for the Terminal application from your desktop menu or you have the option to use the short-cut cut Linux desktop may have the installed shortcut Ctrl+Alt+T to open Terminal directly.

  1. On your Ubuntu Linux desktop, Open the Dash by clicking the Ubuntu home button in the upper-left. Once open, type in “terminal,” and then select the Terminal application from the results that appear below the textbox.

If you are using Linux Mint, you may find Terminal located in your left bottom Menu. Just type “Terminal” into the Menu search box.

If you have Terminal shortcut installed, type in the following shortcut command: Ctrl – Alt + T

After you have opened Terminal on your Linux desktop, type in the following command to connect to your server using SSH.

#ssh root@1.1.1.1

Please remember that the IP 1.1.1.1 is only an example. To connect to your server, you will have to  Do not forget to replace the IP 1.1.1.1 with your server the IP address that you are attempting to connect to. of the server you are connecting to.

After you have entered your information, your terminal will request verification to continue logging into your server with the following message;

“Are you sure you want to continue connecting (yes/no)? Yes”

You must type in “Yes” to continue logging into your server. If you type in “No” you will be directed back to the normal terminal window.

After you respond “Yes” to continue to your server, you will be prompted to provide your ‘root’ user password for your server. Please remember that as you are typing your password, you will not see anything you are typing nor the text cursor providing you a secure login to your server using SSH.  Please pay close attention to type in the correct letters, digits, and symbols for your password allowing you to access your server easily.

After you have entered your ‘root’ user password, Terminal will connect you to the server providing you the ability to use SSH commands to control your Linux Cloud Server.

Was this article helpful?

Yes (3)
No (0)

We're sorry you didn't find this article very helpful. Please help us improve it by leaving your feedback below.

Error