00Pflaume
00Pflaume

Reputation: 13

Jedis Connect To Redis Using SSH Tunneling

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

Answers (1)

sazzad
sazzad

Reputation: 6267

Try

Jedis jedis = new Jedis("rediss://sshuser:[sshpassword]@sshhost:sshport");

Upvotes: 1

Related Questions