This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

unable to set cc set ssh

Hi,
stupiqd question:
How can I set pubkey_authentication via cc?

cc set ssh pubkey_authentication =yes
does not work. 

:/root # cc get ssh pubkey_authentication
ssh->pubkey_authentication = 0

Any ideas?

Thanks,
(I know the way via webadmin but I'm looking for the certain cc command.


This thread was automatically locked due to age.
  • Try this command:
    cc set ssh pubkey_auth 1
  • Try this command:
    cc set ssh pubkey_auth 1


    no, does not work

    /root # cc set ssh pubkey_auth yes
    [
              'INCOMPATIBLE_DATA',
              {
                'Nattrs' => [
                              'nodelist'
                            ],
                'attrs' => [],
                'check' => 'input',
                'datatype' => 'BOOL',
                'fatal' => 1,
                'format' => 'The %_N requires %_d.',
                'msgtype' => 'INCOMPATIBLE_DATA',
                'name' => 'The SSH public key authentication switch requires boolean data.',
                'never_hide' => 0,
                'nodelist' => 'ssh->pubkey_auth',
                'value' => 'yes'


    Thanks
    Cheers
  • Hm - did you use "1" instaed of "yes" - your output looks like if you did't :-)

    Regards
    Manfred
  • Try this command:
    cc set ssh pubkey_auth 1


    Hm - did you use "1" instaed of "yes" - your output looks like if you did't :-)

    Regards
    Manfred


    yes, I tried both:


    /root # cc set ssh pubkey_auth 1
    [
              'SSH_AUTH_PUBKEY',
              {
                'attrs' => [],
                'format' => 'Keys for public key authentication are missing.
    Will disable secure shell (SSH) public key authentication.',
                'msgtype' => 'SSH_AUTH_PUBKEY',
                'name' => 'Keys for public key authentication are missing.
    Will disable secure shell (SSH) public key authentication.',
                'never_hide' => 0,
                'nodelist' => 'ssh->login_keys'

    Cheers,
  • Hi ciscoman

    The command works but isn't enabled as you don't have and public keys. As soon you add them and then enable it it should work 

    Thanks