import redis.clients.jedis.Jedis;
public class RedisStringJava {
public static void main(String[] args) {
Jedis jedis = new Jedis("master.redis-poc-single-01.eeeeee.use1.cache.amazonaws.com", 6379, true);
jedis.auth("mypassword");
System.out.println("Connection to server sucessfully");
jedis.set("tutorial-name", "Redis tutorialz");
// Get the stored data and print it
System.out.println("Stored string in redis:: "+ jedis.get("tutorial-name"));
}
}
Showing posts with label tunnel. Show all posts
Showing posts with label tunnel. Show all posts
Tuesday, 12 February 2019
Connection with Jedis to passworded, "in-transit" encrypted AWS Elasticache Redis instance
Wednesday, 29 May 2013
Direct ssh to a server via proxy using putty/plink on Windows
- Make sure seamless ssh keys are setup to your bastion server for your username
- Not covered here
- See: http://www.ualberta.ca/CNS/RESEARCH/LinuxClusters/pka-putty.html
- Session -> Host Name -> mytargetserver.mydomain.com
- Connection -> Proxy
- Proxy Type -> Local
- Telnet command, or local proxy command
- c:/program files (x86)/putty/plink.exe myproxy.mydomain.com -l myusername -agent -nc %host:%port
- adjust this path to plink.exe to match your local setup
- hint: install the complete putty install package, not just putty
- Tunnels
- L8081 mytargetserver.mydomain.com:8081
Another example: plink -L 127.0.0.1:1433:mysqlserver.com:1433 admin@google.com -i myprivkeyfile
Subscribe to:
Posts (Atom)
Interview questions: 2020-12
Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer Networking Layer 1 vs Layer 4 haproxy u...
-
CRITICAL: AWS now offers internal VPC DNS! Below is no longer necessary AFAIK. Woo hoo! http://aws.amazon.com/about-aws/whats-new/2014/...
-
build sudo apt-get install git gcc sudo apt-get install automake autoconf git clone git://github.com/rriley/tsunami-udp.git cd tsunam...
-
From: https://bugs.eclipse.org/bugs/show_bug.cgi?id=382972#c4 Assumptions: jEdit was installed into /Applications directory. Close any...