{"library":"redis-ssh2","type":"library","category":null,"description":"redis-ssh2 is a Node.js package (v1.0.3) that enables executing Redis commands over an SSH tunnel using ioredis and ssh2. It creates a local SSH tunnel to a remote server and then connects to Redis through that tunnel, bypassing restrictions on localhost-only connections. The package wraps ioredis for Redis operations and ssh2 for SSH connections. It is particularly useful when Redis is only accessible from a webserver and not directly from the client. The API consists of a single connect() function that accepts SSH and Redis configurations and returns a promise that resolves to an ioredis client. Users must close the tunnel with Redis.close() when done.","language":"javascript","status":"active","version":"1.0.3","tags":["javascript","redis","remote","ioredis","net","tunnel","ssh2"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install redis-ssh2","imports":["import Redis from 'redis-ssh2'","const Redis = require('redis-ssh2')","Redis.close()"]},{"cmd":"yarn add redis-ssh2","imports":[]},{"cmd":"pnpm add redis-ssh2","imports":[]}],"homepage":"https://github.com/SusonJohn/redis-ssh2#readme","github":"https://github.com/SusonJohn/redis-ssh2","docs":null,"changelog":null,"pypi":null,"npm":"redis-ssh2","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}