wnd's weblog

Page « 1 2 3 4 5 6 7 8 9 10 11 »
Posts by classification

SSH connection multiplexing

7 Apr 2020 00:22:25 FFR, software

OpenSSH has built-in connection multiplexing. I’ve been using SSH for two decades, and only now I realise SSH comes with connection multiplexing. See ssh_config option ControlMaster.

I use SSH daily. I create and use SSH tunnels daily. To name a few uses, I use SSH tunnels for database connections, HTTP connections, and for SSH connections. I used to connect to x11vnc over an SSH tunnel. I create tunnels that require two hops. However, never have I used SSH connection multiplexing. Until tonight.

Host foo
        Hostname        example.com
        ControlPath     /var/run/user/1000/%r@%h:%p
        ControlMaster   auto
        ControlPersist  10m

This simple config will /automagically/ start a master process on first connection to foo, and share that for future connections. Master is killed 10 minutes after the last client disconnect.

I am sure there are benefits in having dedicated process for each connection. I am sure there are drawbacks in connection multiplexing. For now, I’m just happy to learn something new.


Photos from Paris, France, March 2011

14 Jan 2020 23:13:11 photos
Paris, France

Random pictures from seemingly random locations.

See the photos.


TCP port scanner

13 Jan 2020 20:37:32 software

portscan is super simple TCP port scanner for a particular purpose. It exists because I was too lazy to read nmap manual about timing options and I wanted to scan a host for open ports. Also, it was a perfect opportunity to have another learning experience with Golang. This tool will trigger each and every IDS along the way. You should use nmap instead.

Should you want to proceed against all the odds, you can find the sources at GitLab).


Photos from Tallinn, Estonia, August 2010

13 Jan 2020 20:22:26 photos
Tallinn, Estonia

Small set of photos from Tallinn, Estonia, taken back in August 2010.

See the photos.



27 Dec 2019 02:20:18 software

xmlstream is a Golang package for streaming XML output. It was created to replace raw text output of gpx-to-kml. Conveniently both also served as a little exercise at Golang. Little documentation exists as of yet.

You can find the sources at GitLab.


Website overhaul

26 Dec 2019 02:27:11 diary, software

wnd.katei.fi website is now generated with Jekyll with photos handled mostly by Sigal. Jekyll is used unmodified, but with two custom plugins. I had to modify Sigal slightly to make passing its output to Jekyll more bearable. Both use custom themes. Finally, there’s a Makefile to orchestrate builds, link checks, and pushing changes live. All this means site layout has changed dramatically. While I personally strongly dislike browsing Teh Web on mobile, I’ve spent quite a bit of effort to improve readability on such devices. It’s not perfect still.

Read full entry (permalink)

HTML and mobile browsers

24 Oct 2019 23:06:54 rant

I don’t understand HTML rendering anymore. I understand h1, h2, p structure. However it seems that on mobile not all equal text is created equal.

Read full entry (permalink)

Convert GPX files to KML

22 Sep 2019 23:52:00 software

Convert GPX files to KML with this command line tool. Reads files and stdin. Not without its flaws. \o/

Read full entry (permalink)

Keep stuff such as SSH tunnels alive

17 Dec 2018 00:00:00 software

Keep background applications such as SSH tunnels alive with this sh script. autossh is great, but doesn’t always survive challenges of my environment.

Read more on Gitlab project page.


PulseAudio helper for Bluetooth output

26 Nov 2018 00:00:00 software

Automate PulseAudio-Bluetooth chores with this Python script. Resolve and select device profile automatically, and provide a single tool to fix commonly occuring issues.

Read full entry (permalink)
Page « 1 2 3 4 5 6 7 8 9 10 11 »