wiki:jazz/24-09-18

2024-09-18

homebrew

~$ brew tap
homebrew/cask
homebrew/core
jazzwang/lab
~$ brew list --formula
bash-completion	ddrescue	gh		gmp		libidn2		oniguruma	rclone		tree
ca-certificates	fzf		git		htop		libunistring	openssl@3	readline	unrar
coreutils	gettext		git-extras	jq		ncurses		pcre2		tig		wget
~$ brew list --cask
android-platform-tools	google-chrome		pingid			visual-studio-code	vysor
esun-webatm-activex	joplin			spectacle		vlc
font-hack		loopback		temurin@8		vmware-horizon-client
GraphViz image

Windows - Tiny11 / Tiny 10

Windows Server

https://www.techtarget.com/rms/onlineImages/windows_server-os_timeline.jpg

Windows

GCP Cloud Run

Full working example You can use this Dockerfile to generate a Cloud Run service to which you can SSH:

FROM alpine:latest

RUN apk update && apk add websocat openssh &&             \
    ( echo 'root:root' | chpasswd ) &&                    \
    sed -i 's|#PermitRootLogin|PermitRootLogin yes\n\0|g' \
      /etc/ssh/sshd_config &&                             \
    cat /etc/ssh/sshd_config

CMD ( cd /etc/ssh && ssh-keygen -A ) &&       \
    /usr/sbin/sshd -f /etc/ssh/sshd_config && \
    websocat --binary ws-l:0.0.0.0:8080 tcp:127.0.0.1:22

This Dockerfile uses a barebones alpine image, but you could use a beefy image with a lot of tools that you might need in your temporary computation machine. It installs websocat and openssh, enables root SSH login and sets the root password to root.

Put this Dockerfile in an empty directory and deploy this using:

$ gcloud alpha run deploy alpine-ssh --platform managed \
  --execution-environment gen2 --source .

You can SSH to the resulting image using:

$ ssh -o ProxyCommand='websocat --binary wss://alpine-ssh-AAAAAAAAAA.a.run.app' root@host

(use root when prompted for password). SUCCESS!

Last modified 2 months ago Last modified on Sep 19, 2024, 4:24:03 PM