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.

  1. After installation, verify it by entering the following command in PowerShell:

ssh -V

You should see the OpenSSH version displayed:

OpenSSH version

If nothing happens when checking the version, you can run:

Add-WindowsCapability -Online -Name OpenSSH.Client*

  1. 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
Generating a Key in Powershell

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.

Generated keys (pair)
  1. Run the following command to retrieve the public SSH key:

Get-Content ~/.ssh/id_ed25519.pub

Copy the public key from the output.

  1. Open the MikoPBX web interface and go to "System" → "General Settings":

"General settings" section
  1. 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":

"SSH Authorized Keys" field

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:

Successful connection!

Last updated

Was this helpful?