Connecting via SSH (Windows)
Connecting to MikoPBX via SSH using PowerShell (OpenSSH)
Generating and Linking the Key
To begin, you need to install OpenSSH on Windows. You can do this from this link.
After installation, verify it by entering the following command in PowerShell:
ssh -V
You should see the OpenSSH version displayed:

Next, generate an SSH key by entering the following command:
ssh-keygen -t ed25519 -C "[email protected]"
This will generate an "ed25519" key with the comment "[email protected]" to identify it. You can specify a path for the keys by adding -f
and a path, for example:
ssh-keygen -t ed25519 -f ~/.ssh/my_new_key

After this, the key pair will be created in the specified directory. One file will contain the public key, and the other the private key.

Run the following command to retrieve the public SSH key:
Get-Content ~/.ssh/id_ed25519.pub
Copy the public key from the output.
Open the MikoPBX web interface and go to "System" → "General Settings":

Navigate to the SSH section and paste the public key into the "SSH Authorized Keys" field in the following format:
KeyType KeyData
Click "Save settings":

Connecting via SSH
To connect via SSH, run the following command in PowerShell:
ssh -i C:\Users\<Username>\.ssh\id_ed25519 root@mikopbxipadress
Replace the following based on your parameters:
The path to your SSH key.
The IP address of your MikoPBX instead of
mikopbxipadress
.
You will then be connected to the MikoPBX console via SSH:

Last updated
Was this helpful?