githubEdit

SSH Connection (Linux/MacOS Terminal)

Connecting to MikoPBX via SSH using Terminal (Linux/MacOS)

Generating and Linking the Key

  1. First, generate an SSH key. Open a terminal and enter the following command to create it:

ssh-keygen -t ed25519 -C "[email protected]"

In this example, an "ed25519" key will be generated with the comment "[email protected]envelope" for future identification.

You can also specify a path where the key files will be saved. By default, keys are stored in ~/.ssh/id_ed25519.pub. To set a custom path, add -f and specify it, for example:

ssh-keygen -t ed25519 -f ~/.ssh/my_new_key
Creating the SSH Keys (pair)
circle-info

By default, the key is saved at Username/.ssh/id_ed25519.pub on macOS or /home/Username/.ssh/id_ed25519.pub on Linux.

  1. Next, you need to retrieve and copy the newly created public key. Enter the command:

Public key
  1. Open the MikoPBX web interface and go to SystemGeneral Settings:

  2. Paste your public key into the "SSH Authorized Keys" field:

SSH Authorized Keys Field

Connecting via SSH

To connect via SSH, run the following command in your terminal:

Replace the following with your actual parameters:

  • The path to your SSH key (if different from default).

  • The IP address of your MikoPBX in place of mikopbxipadress.

Upon successful authentication, you will be connected to the MikoPBX console via SSH:

Successful connection!

Last updated

Was this helpful?