When I connect to Cypher Shell using cmd, I type this:
bin\cypher-shell -u neo4j
Immediately after, I'm prompted for a password. I enter the password and connect to Cypher Shell. Yay!
Now, if I try to connect to Cypher Shell using cmd with this command:
bin\cypher-shell -u neo4j - p <password>
I'm given the error:
The client is unauthorized due to authentication failure
Can somebody explain to me why that is?
Thank you
Use the full connection string for cypher-shell can be in the format:
bin\cypher-shell -a <connection-URI>://<username>:<password>#<host><:port>
or
bin\cypher-shell -a <connection_uri> -u <username> -p <password>
For example:
bin\cypher-shell -a neo4j://neo4juser:neo4jpassword#127.0.0.1:7687
or
bin\cypher-shell -a neo4j://127.0.0.1:7687 -u neo4juser -p neo4jpassword
Related
Redis monitor cmd is not working with authentication:
Cmd: redis-cli -h <redis_endpoint> -p <port> -n <database> -a <password> monitor
error: (error) ERR wrong number of arguments for 'MONITOR' command
But the same works with Redis without authentication:
redis-cli -h <redis_endpoint> -p 6379 monitor
Can someone help with correct redis-cli monitor cmd that works with database and password.
Note I am not talking about SSH connections, but the sudo -u command once fabric has already established a connection as the yuji user.
run('whoami') # outputs yuji
run('sudo -u postgres') # pw prompt
run('sudo su postgres') # pw prompt
sudo('ls', user='postgres') # pw prompt
Causes a password prompt
[sudo] password for yuji:
If I SSH into the server manually, I can run the following commands without any problems.
ssh yuji#example.com
whoami # yuji
sudo -u postgres # no pw prompt
sudo su postgres # no pw prompt
I'm curious what the difference is in the fabric environment?
My sudoers file
yuji ALL=(postgres) ALL
Read through https://redistogo.com/documentation/introduction_to_redis?language=en but couldn't get it to work.
redis-cli -h my-host -p 1234 -a mypassword
What is my-host?
How to see the database?
The web console seems to not display all the data. keys fails.
redis-cli -h returns "Could not connect to Redis"
On https://redistogo.com/heroku/resources/934839 where your app installs redistogo.
The following link is given:-
redis://redistogo:12340994131cb8c2f2402ffdsafds3333129#birdeye.redistogo.com:3244/
using this you type on console:-
redis-cli -h my-host -p 1234 -a mypassword
redis-cli -h birdeye.redistogo.com -p 3244 -a 12340994131cb8c2f2402ffdsafds3333129
and you will log onto console.
"My-host" is the hostname you get from Redis To Go.
I have currently installed OID (Oracle Internet Directory) and created some roles and users in them. I intend to access them using LDAP commands.
$ldapbind -p <port_number> -h <ip> -D "cn=orcladmin"
bind sucessful
$ ldapsearch -h <port_number> -p <ip> "dc=<name>"
ldap_search: Inappropriate authentication
ldap_search: additional info: Server is Configured to Deny Anonymous Binds
Is there something I am missing ?
On your ldapsearch command, add the -D "cn=orcladmin" for who you are binding as, -w "Password" or -W to prompt at run time. Probably you want a -b "ou=Base,dc=DNtoSearch" and then your filter as you have it.
You need to bind each time.
I don't have phpMyAdmin installed on a ubuntu server but want to show all mysql processed. I know that you can do a "show_processes" in phpMyAdmin but how can I do it via shell?
Thanks
mysql -u USER -pPASS -P PORT -h HOST < "show processlist"
details:
-u = user
-p = password
-P = port number
-h = HOST
if you want to get the details via information_schema views,
sql="select * from information_schema.processlist where ???"
mysql -u USER -pPASS -P PORT -h HOST < $sql
mysql -uuser -p -e "show full processlist"
or
mysql -uuser -p -e "show processlist"