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.
Include Page |
---|
| WCS5EN:Public key authorization |
---|
|
...
1. Create public and privet keys with command:
Code Block |
---|
|
ssh-keygen -t rsa |
2. Enter to CLI:
Code Block |
---|
|
ssh -p 2001 admin@localhost |
4. Enter the command
Code Block |
---|
|
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
Code Block |
---|
|
ssh -p 2001 admin@localhost -i /homedir/.ssh/id_rsa |
where /homedir/.ssh/id_rsa is private key file full name.
| | WCS5EN:Public key authorization |
---|
|