Friday, 2 April 2010

SSH Fun and Games

Want to connect to a Linux server via SSH ? Want to have the X11 protocol tunneled back to your client device ?

If so, run the command: -

ssh -o ForwardX11=true root@hostname

where hostname is the Linux box to which you want to connect.

This sets the DISPLAY variable on the target host to localhost:10.0, which is one less thing to do. It's also no longer necessary to run xhost + on the client machine.

Sweet :-)

No comments:

Note to self - use kubectl to query images in a pod or deployment

In both cases, we use JSON ... For a deployment, we can do this: - kubectl get deployment foobar --namespace snafu --output jsonpath="{...