Connecting via SSH (Windows)
Connecting to MikoPBX via SSH using PowerShell (OpenSSH)
Last updated
Connecting to MikoPBX via SSH using PowerShell (OpenSSH)
Last updated
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:
You should see the OpenSSH version displayed:
If nothing happens when checking the version, you can run:
Add-WindowsCapability -Online -Name OpenSSH.Client*
Next, generate an SSH key by entering the following command:
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:
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:
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:
Click "Save settings":
To connect via SSH, run the following command in PowerShell:
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: