Creating another user on Google Coral Mendel OS - google-coral

How can I create a new user and push an mdt key for that user? I keep getting an error of Unable to push keys to the device: Authentication failed. when trying to push a key for the new user. After creating a new user and giving it sudo privileges, I am running these commands:
mdt resetkeys 192.168.100.2
mdt set username newuser
mdt set password newpassword
mdt pushkey
How can I create a new user and connect to it over mdt?

Related

I actually reset the MDT keys on my Coral Dev board but not it doesn't let me access the board

I get the following error when I use "mdt shell".
I have went through the documentation and all I want to know how I can access the board files? As the documentation tells me to remove the authorized keys from /home/mendel/.ssh/authorized-keys directory.
I have connected the serial port but I don't see anything when I try to Dmesg| grep but i get a sound like a device is connected to the PC. How can I access the coral files in order to delete the authorized files?
I'm using UBUNTU terminal on Windows.
'''
~$ mdt shell green-horse
Waiting for device green-horse...
Connecting to green-horse at 192.168.101.2
Key not present on green-horse -- pushing
Couldn't connect to keymaster on green-horse: [Errno 111] Connection refused.
Did you previously connect from a different machine? If so,
mdt-keymaster will not be running as it only accepts a single key.
You will need to either:
Remove the key from /home/mendel/.ssh/authorized_keys on the
device via the serial console
or -
Copy the mdt private key from your home directory on this host
in ~/.config/mdt/keys/mdt.key to the first machine and use
'mdt pushkey mdt.key' to add that key to the device's
authorized_keys file.
Failed to push via keymaster -- will attempt password login as a fallback.
Can't login using default credentials: Bad authentication type; allowed types: ['publickey']
'''
Did you insert the SD card on the first attempt to connect using mdt?
If so, remove it and try again.

Is there any way I can fix this problem with my coral dev board?

I was using coral board with my login credentials before but the SSH didn't seem to work so I removed the keys from the coral in order to generate new ones and now its not letting me in the board. I'm a noob at this, if you answer this please be specific. its for my college project. How do i change the accesskeys in the directory?
Waiting for a device...
Connecting to green-horse at 192.168.101.2
Key not present on green-horse -- pushing
Couldn't connect to keymaster on green-horse: [Errno 111] Connection refused.
Did you previously connect from a different machine? If so,
mdt-keymaster will not be running as it only accepts a single key.
You will need to either:
1) Remove the key from /home/mendel/.ssh/authorized_keys on the
device via the serial console
- or -
2) Copy the mdt private key from your home directory on this host
in ~/.config/mdt/keys/mdt.key to the first machine and use
'mdt pushkey mdt.key' to add that key to the device's
authorized_keys file.
Failed to push via keymaster -- will attempt password login as a fallback.
Can't login using default credentials: Bad authentication type; allowed types: ['publickey']
ssh should also works (it is what I use), but you'll need generate a key on your host machine and then put it in the ~/.ssh/authorized_keys on the board, there could be multiple keys placed in that file, and mdt needs to be one of them.
To recovers mdt access, you can check here: https://coral.ai/docs/dev-board/mdt/#recover-mdt-access
To ssh into the board, generate your own ssh key:
ssh-keygen
and your new key will be in ~/.ssh/id_rsa.pub, you can put that key on the board in order to ssh.

Amazon Lightsail Bitnami user mysql access denied at the time of new use creation

I have created Amazon Lightsail instance. And started a fresh wordpress site, now i connected phpmyadmin vie putty .ppk file its connected successfully with user bn_wordpress but if i want to create new database in this user it shows:
**
Access Denied for user bn_wordpress#localhost to database NEW_CREATED_DB
**
I just want to know how can i proceed to create new password. I am new to AWS Lightsail. Please provide answers.
The bn_wordpress user doesn't have privileges to create databases. In this case, you will need to use the "root" user and the credentials we configure during the boot process to access phpMyAdmin and create that new database you want to create.
I hope this helps.
Complete setup was correct:
1. Download .pem file from lightsail instance
2. Convert it into .ppk extension vie puutygen
3. Connect 127.0.0.1 vie putty software and ppk key.
4. Access phpmyadmin vie http://127.0.0.1:8888/phpmyadmin/index.php
5. Login successfully with root credentials.
Thanks.

Unable to login using SQL Developer?

Recently I installed Oracle 12c and using the below commands in sqlplus I created a user, set the password and grant connection privileges. I can successfuly login with PYTHON user using sqlplus and create tables.
ALTER SESSION SET "_ORACLE_SCRIPT"=true;
CREATE USER PYTHON IDENTIFIED BY “1234”;
GRANT CONNECT TO PYTHON;
GRANT CREATE TABLE TO PYTHON;
BUT when I try to login with he same credentials using SQL Developer it shows me the below error
ORA-12505 , TNS listener does not currently know of SID given in connector description
There is no 12c XE..only 11g and 18c XE.
So your service name is wrong.
Try orcl
Or check your logs for the database service name

Gerrit can not login

I setup a gerrit server, and I can login as admin (admin/passwd).
Then I installed the gerrit command line tools and create a new user with the command
cat ~/.ssh/id_watcher.pub | ssh -p 29418 review.example.com gerrit create-account --group "'some-group'" --http-password "'passwd'" --ssh-key - watcher
user wathcer created successfully, but I can not login as wathcer user. It notice "Invalid username or password." what do I miss?
Pay attention at the "gerrit create-account" documentation:
Creates a new internal-only user account.
If the account is created without an email address, it may only be
used for batch/role access, such as from an automated build system or
event monitoring over gerrit stream-events.
You can't log in, interactively, using this account.

Resources