In addition to interactive access, WCS core CLI supports public key authorization. This feature allows to enter to CLI and run some CLI commands from script, for example.

Public key authorization setup

1. Create public and privet keys with command:

ssh-keygen -t rsa

2. Enter to CLI:

ssh -p 2001 admin@localhost

4. Enter the command

add authorized_key -f /homedir/.ssh/id_rsa.pub

where /homedir/.ssh/id_rsa.pub is the full name of public key.
This command imports public key and places it to /usr/local/FlashphonerWebCallServer/.ssh/authorized_keys file

5. Restart WCS

Enter to CLI with public key authorization

Enter to CLI with command

ssh -p 2001 admin@localhost -i /homedir/.ssh/id_rsa

where /homedir/.ssh/id_rsa is private key file full name.