TechSpace Knowledgebase
Search:     Advanced search
Browse by category:
Contact Us

How to use SSH to log in to the command line

Views: 343
Votes: 0
Posted: 29 Apr, 2016
Updated: 30 Apr, 2016

Many system administration tasks and some website administration tasks require that you access the server from the command line interface (CLI). For example, if you need to run a script, you must do this from the CLI.


Your hosting provider controls who can log in via the command line and what permissions are available. If you need CLI access, contact your hosting provider. 

To use SSH to log in to the server, perform the following steps:

  1. Open your preferred CLI application. For example, Apple users often use the Terminal application to access the CLI.
  2. Run the following command, where user represents your username on the server, and hostname represents the server's hostname or IP address:

    ssh user@hostname 
  3. Enter your password and press the Enter key.

The working directory that you access immediately after you log in depends on your system's configuration and the permissions that you possess on the server.


To determine which user you logged in as on the CLI, run the following command:


This command returns the name of the currently-authenticated user, or it returns root if you used the sudo command to escalate your privileges.

Ref :

Others in this Category
document Import contacts from Google Gmail to Outlook
document Microsoft : Autodiscover Service
document How to access cPanel
document Access webmail from the cPanel interface
document cPanel & WHM service URLs
document How to Configure Mail Filters
document How to Configure the Apache SpamAssassin Report_Safe Option
document How to Create a Spam Email Filter
document How do I set up an out-of-office reply for incoming emails?
document How to Create Mail Filter Rules For Mailing Lists
document How to Set Email Send Limits
document How to Set Up a cPanel Email Account for iOS
document How to Set Up a cPanel Email Account for How to Set Up a cPanel Email Account for iOS
document IMAP vs. POP3
document How to Copy Addon Domains to a New Account
document Introducing Send Email in Access 2013 web apps
document How to always pop-out an email window in Outlook 2013
document Tutorial: Outlook signature image with hyperlink
document Fix for Outlook: “Contacting the server for information”
document "Attachment size exceeds the allowable limit" error when you add a large attachment to an email message in Outlook
document Outlook 2013 max file limit: “The file you’re attaching is bigger than the server allows.”
document Outlook hangs on loading profile? Solutions
document Message stuck in Outbox
document How To Convert A POP/IMAP Mailbox To Exchange / Exchange Mailbox to POP/IMAP
document 550 Relay Not Permitted error message when sending mail
document Turn Thunderbird into the Ultimate Gmail IMAP Client
document Set up email in Android email app