Reputation: 13
How can I connect to Redis using jedis by using an SSH tunnel?
I tried using
Jedis jedis = new Jedis("ssh://sshuser:[sshpassword]@sshhost:sshport");
but this only resulted in the error "Unknown reply: S".
Upvotes: 0
Views: 360
Reputation: 6267
Try
Jedis jedis = new Jedis("rediss://sshuser:[sshpassword]@sshhost:sshport");
Upvotes: 1