Connecting via SSH (Linux/MacOS)
Connecting to MikoPBX via SSH using Terminal (Linux/MacOS)
Last updated
Connecting to MikoPBX via SSH using Terminal (Linux/MacOS)
Last updated
First, generate an SSH key. Open a terminal and enter the following command to create it:
In this example, an "ed25519" key will be generated with the comment "[email protected]" 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:
By default, the key is saved at /Users/Username/.ssh/id_ed25519.pub on macOS or /home/Username/.ssh/id_ed25519.pub
on Linux.
Next, you need to retrieve and copy the newly created public key. Enter the command:
Open the MikoPBX web interface and go to System → General Settings:
Paste your public key into the "SSH Authorized Keys" field:
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
.
You will then be prompted for the SSH passphrase if you set one. Upon successful authentication, you will be connected to the MikoPBX console via SSH: