How do I log in to my Magento server using a terminal, command prompt, or SSH?

To complete almost all of the tasks in this guide, you must remotely log in to your Magento server.

Prerequisites: You must have:

  • A terminal application

    Windows and Mac OS typically use different terminal applications.

  • A username and password for the Magento server

    On a hosted system, this is likely a user who doesn’t have administrative rights to the server; that’s OK as long as the user can install system software, stop and start services like the web server, and so on.

    If you have your own server, you or your system administrator can usually log in as the root user, which on Linux, is the user with full administrative rights over the entire server.

To use a terminal application to remotely access the Magento server:

  1. Set up the terminal application according to its provided documentation.
  2. Start the terminal application.
  3. When prompted, enter your Magento server’s hostname or IP address.
  4. Log in to the server with the username or password you were provided.

Here’s what it looks like when you’re logged in to a server as the root user with Cygwin on Windows.

Logging in with Cygwin on Windows

Secure Shell (ssh) is a protocol you can use to securely connect to a remote server without the username or password being sent over the network.