ReadyMage Help
  • ReadyMage
  • USER PORTAL
    • User Portal Access
    • Change Password
    • Two-Factor Authentication
  • Project Management
    • Project List
    • Project Settings
      • General Info
      • Git Management
      • Environments
      • Members and roles
      • Security
        • Deletion Protection
        • TFA Enforcement
      • Delete Project
  • Application Management
    • Magento Details
    • Domain Management
    • Logs & Monitoring
    • Backups
      • Backup process
      • Disaster recovery process
    • Deployments
      • Deploy without build cache
      • Queue Tab (Launching soon)
      • Settings Tab (Launching soon)
        • Automatic Deployments
        • ReadyMage Maintenance Page
          • Website Access During Maintenance
      • Notifications Tab (Launching soon)
        • Managing email notifications
        • Managing Slack notifications
      • Pipeline Deployments
      • Pipeline Configuration file
        • Migration guide from 0.x.x to 1.0.0
    • SSH Access
      • SSH Usage
      • Database Access using Graphical Interface
      • Troubleshooting
    • IP Whitelist
    • Password Authentication
    • Database & Media
    • Search Engine Bots Discovery
  • Service Management
    • Server-Side Rendering
    • SFTP
    • NewRelic
    • Packagist Modules
    • Cloudflare
  • Infrastructure Management
    • Autoscale
    • Sleep Mode
    • Manage Services
    • Historical Resource Usage
  • PROJECT DEVELOPMENT
    • Node.js version
    • Store access
    • Creating a Production Environment
    • Additional Environments
    • ScandiPWA, PWA Studio, Hyva, or Luma
    • Project Migration to ReadyMage
    • SSH Access for Magento CLI, database and media
    • Code customization and local setup
    • Extension installation
    • Add translations (switch locale)
    • Existing ScandiPWA Project Code Migration
    • Database and media migration
    • Redirect setup
    • Connect CDN and WebP optimization
    • Email setup
    • Changing the Domain & Multi-Store Set up
    • Internal service addresses
    • Kibana filters and useful CLI commands
    • Persistent directories
  • FAQ
    • General
    • Autoscaling
    • Billing
    • User Portal Options
    • Services connected to ReadyMage
    • Hosting, managing resources and autoscaling
    • Source Code Management
    • ScandiPWA and Magento Versions, Commerce Edition and Upgrades
    • Supported software versions
Powered by GitBook
On this page
  • Generating your SSH Key and Getting Public Key
  • Linux
  • Mac
  • Windows
  • Add SSH User
  • Remove SSH User
  • Connect to SSH using terminal
  • SSH Usage
  • Magento CLI
  • MySQL CLI
  • Media management
  • Additional tools

Was this helpful?

  1. PROJECT DEVELOPMENT

SSH Access for Magento CLI, database and media

Run Magento CLI commands, create database and media dumps or replace database or media.

Generating your SSH Key and Getting Public Key

Linux

xclip must be installed to generate SSH keys on Linux. Check if you have it installed by running the following command in the terminal:

where xclip

For version >= Ubuntu 20.04

which clip

If the output is nothing then you don't have it installed. Install it by entering the following command in the terminal: sudo apt install xclip

  1. Generate the SSH key by entering the following command in the Terminal window: ssh-keygen -t rsa

  2. When you execute this command, the ssh-keygen utility prompts you to indicate where to store the key.

  3. Type in a passphrase. You can also hit the ENTER key to accept the default (no passphrase).

  4. After you confirm the passphrase the system generates the key pair.

  5. Your private key is saved to the id_rsa file in the .ssh directory. Do not share it with anyone.

  6. Your public key is saved to the id_rsa.pub file. You can copy it by running this: xsel -b < ~/.ssh/id_rsa.pub

Mac

  1. Generate the SSH key by entering the following command in the Terminal window: ssh-keygen -t rsa

  2. When you execute this command, the ssh-keygen utility prompts you to indicate where to store the key.

  3. Type in a passphrase. You can also hit the ENTER key to accept the default (no passphrase).

  4. After you confirm the passphrase the system generates the key pair.

  5. Your private key is saved to the id_rsa file in the .ssh directory. Do not share it with anyone.

  6. Your public key is saved to the id_rsa.pub file. You can copy it by running this: pbcopy < ~/.ssh/id_rsa.pub

Windows

Add SSH User

  1. In the instance drop-down, select the instance for which you would like to create SSH access.

Remove SSH User

  1. In the instance drop-down, select the instance from which you would like to remove SSH access.

  2. Open the SSH Access section.

  3. Click the red delete button next to the username to remove access.

Connect to SSH using terminal

If you are not using Terminal to connect to SSH then you might require to enter: Host: ssh.ireland.eu.i.readymage.com (EU Ireland region) ssh.stockholm.eu.i.readymage.com (EU Stockholm region) ssh.ohio.us.i.readymage.com (USA Ohio region) ssh.central.ca.i.readymage.com (Canada Central region) ssh.central.me.i.readymage.com (Middle East UAE region) Port: 22

  1. Select the instance you would like to SSH connect to.

  2. Open the SSH Access tab under the Application Management section.

  3. Press copy next to your Username to copy the command.

  4. Paste the command into Terminal and hit enter.

SSH Usage

Magento CLI

MySQL CLI

Media management

Additional tools

File compressing tools:

  • gzip

  • tar

  • unzip

  • zcat

  • zip

  • dar

Other useful tools:

  • curl

  • git

  • grep

  • head

  • jq

  • ping

  • pv

  • tail

  • tmux

  • wget

PreviousProject Migration to ReadyMageNextCode customization and local setup

Last updated 1 month ago

Was this helpful?

Follow these .

SSH access doesn't allow you to make code-level changes including enabling or disabling extensions. Perform code changes by following instructions and enable/disable extensions by following instructions .

Log into your User Portal account by following .

If you plan to use a single SSH key for multiple instances, .

To add SSH access for a single instance, .

Log into your User Portal account by following .

Log into your User Portal account by following the instructions .

SSH access doesn't allow you to make code-level changes including enabling or disabling extensions. Perform code changes by following instructions and enable/disable extensions by following instructions .

The list of Magento CLI commands can be found .

Instructions to create a database dump, download the database dump locally, and replace the database on your instance can be found .

Instructions to create download media locally or replace media on your instance can be found .

instructions
here
here
these instructions
follow this guide
follow this guide
these instructions
here
here
here
here
here
here