def set_ssh_key(public_key):
 _xml = '<RIBCL VERSION="2.0">\n                <LOGIN USER_LOGIN="adminname" PASSWORD="password">\n                  <RIB_INFO MODE="write">\n                    <IMPORT_SSH_KEY>\n                      -----BEGIN SSH KEY-----\n                      {0}\n                      -----END SSH KEY-----\n                    </IMPORT_SSH_KEY>\n                  </RIB_INFO>\n                </LOGIN>\n              </RIBCL>'.format(public_key)
 return __execute_cmd('Import_SSH_Publickey', _xml)

def set_ssh_key ( public_key ) : _xml = '<RIBCL VERSION="2.0">\n                <LOGIN USER_LOGIN="adminname" PASSWORD="password">\n                  <RIB_INFO MODE="write">\n                    <IMPORT_SSH_KEY>\n                      -----BEGIN SSH KEY-----\n                      {0}\n                      -----END SSH KEY-----\n                    </IMPORT_SSH_KEY>\n                  </RIB_INFO>\n                </LOGIN>\n              </RIBCL>' . format ( public_key ) return __execute_cmd ( 'Import_SSH_Publickey' , _xml )
configure ssh public keys for specific users cli example: .