Skip to content

Instantly share code, notes, and snippets.

@eeddaann
Created July 4, 2018 08:03
Show Gist options
  • Save eeddaann/6e2b70e36f7586a556487f663b97760e to your computer and use it in GitHub Desktop.
Save eeddaann/6e2b70e36f7586a556487f663b97760e to your computer and use it in GitHub Desktop.
Test connection to Redis with netcat

Test connection to Redis with netcat

echo -e '*1\r\n$4\r\nPING\r\n' | nc redis.host.com 6379

@franee
Copy link

franee commented May 3, 2023

Thanks!

If redis has a password:

$ echo -e 'AUTH password-here\r\n*1\r\n$4\r\nPING\r\n' | nc -w1 127.0.0.1 6379
+OK
+PONG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment