💾 Archived View for perso.pw › blog › articles › drist-1.04.gmi captured on 2023-06-16 at 16:47:37. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-05-24)

➡️ Next capture (2024-03-21)

-=-=-=-=-=-=-

Drist release with persistent ssh

on Mastodon

Drist see its release 1.04 available. This adds support for the flag `-p` to

make the ssh connection persistent across the script using the ssh

ControlMaster feature. This fixes one use case where you modify ssh keys in two

operations: copy file + script to change permissions and this makes drist a lot

faster for fast tasks.

Drist makes a first ssh connection to get the real hostname of the remote

machine, and then will ssh for each step (copy, copy-hostname, absent,

absent-hostname, script, script-hostname), this mean in the use case where you

copy one file and reload a service, it was doing **3** connections. Now with

the persistent flag, drist will keep the first connection and reusing it,

closing the control socket at the end of the script.

Drist is now 121 lines long.

[Download v1.04](ftp://ftp.bitreich.org/releases/drist/drist-v1.04.tgz)

SHA512 checksum, it is split it in two to not break the display:

525a7dc1362877021ad2db8025832048d4a469b72e6e534ae4c92cc551b031cd

1fd63c6fa3b74a0fdae86c4311de75dce10601d178fd5f4e213132e07cf77caa