Skip to main content
The m87 CLI includes built-in SSH integration, allowing you to use standard SSH clients to connect to your remote devices using the familiar .m87 domain suffix.

Overview

Once enabled, m87’s SSH integration allows you to use native SSH commands to access your devices without needing to use the m87 CLI directly. This works with any SSH client and all SSH-based tools like scp, rsync, and git.

Enable SSH Integration

1

Enable SSH Host Resolving

Run the following command to enable SSH integration:
This configures your SSH client to route .m87 domain connections through the m87 CLI.
2

Connect to Your Device

Once enabled, you can connect to any device using SSH:
Replace <device> with your device identifier (e.g., my-device.m87).

Usage Examples

Basic SSH Connection

Copy Files with SCP

Sync with Rsync

Execute Remote Commands

Git over SSH

How It Works

When you enable SSH integration, m87 configures your SSH client to:
  1. Recognize .m87 domain suffixes
  2. Route these connections through the m87 CLI
  3. Establish a secure tunnel to your device through the m87 platform
  4. Forward the SSH session to the device
This allows you to use standard SSH tools while benefiting from m87’s authentication and tunnel management.

Compatibility

The SSH integration works with:
  • Standard SSH clients (ssh, openssh-client)
  • SCP and SFTP
  • Rsync over SSH
  • Git over SSH
  • Any tool that uses SSH as a transport layer

Troubleshooting

Ensure that:
  • You’re authenticated: run m87 login
  • The device is online: check with m87 devices list
  • SSH integration is enabled: run m87 ssh enable again
Verify the device name:
Use the exact device identifier from the list.
Make sure you have access to the device. Check your device permissions with: