Close [x]

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

Edit this page on GitHub

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 user name and password for the Magento server

    On a hosted system, this is likely a user who doesn鈥檛 have administrative rights to the server; that鈥檚 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鈥檚 host name or IP address.
  4. Log in to the server with the user name or password you were provided.

Here鈥檚 what it looks like when you鈥檙e 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 user name or password being sent over the network.