Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagebash
themeRDark
ssh-keygen -t rsa

2. Convert public key to pem with command

Code Block
languagebash
themeRDark
ssh-keygen -f id_rsa.pub -m 'PEM' -e > public.pem

3. Enter to CLI:

Code Block
languagebash
themeRDark
ssh -p 20002001 admin@localhost

4. Enter the command

Code Block
languagebash
themeRDark
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
languagebash
themeRDark
ssh -p 20002001 admin@localhost -i /homedir/.ssh/id_rsa

...