...
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.
...
Code Block |
---|
|
ssh-keygen -t rsa |
2. Convert public key to pem with command
Code Block |
---|
|
ssh-keygen -f id_rsa.pub -m 'PEM' -e > public.pem |
3. Enter to CLI:
Code Block |
---|
|
ssh -p 20002001 admin@localhost |
4. Enter the command
Code Block |
---|
|
add authorized_key -f /homedir/.ssh/publicid_rsa.pempub |
where /homedir/.ssh/public.pem is id_rsa.pub is the full name of public key in pem format.
This comman command imports public key and places it to /usr/local/FlashphonerWebCallServer/.ssh/authorized_keys file
...
Code Block |
---|
|
ssh -p 20002001 admin@localhost -i /homedir/.ssh/id_rsa |
...