Adding a public key to an IP Office virtual machine

Last Updated : Nov 01, 2024 |
Prolog information
This process adds a public key to an IP Office virtual machine.
Before you begin
  1. Open the text file containing the public key. Select and copy the whole public key.
  2. In Azure, select the IP Office virtual machine.
  3. Click OperationsRun command.
  4. Click RunShellScript.
  5. Enter the following command, replacing <public_key> with the public key text:
    ADDITIONAL INFORMATION: sudo mkdir -p /home/Administrator/.ssh
    chmod 755 /home/Administrator
    echo "<public_key>" | sudo tee -a /home/Administrator/.ssh/authorized_keys
    sudo chmod 700 /home/Administrator/.ssh
    sudo chmod 600 /home/Administrator/.ssh/authorized_keys
    sudo chown -R Administrator:Administrator /home/Administrator/.ssh
  6. Click Run.