Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 15ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
j

jails

Recently created Least recently created Recently updated Least recently updated
santiago

santiago / tmuxjail.sh

Last active 1 hour ago FreeBSD jails ssh zsh

Script to pass as SSH command to open jail directly from host

0 0 1
1 #!/usr/bin/env zsh
2
3 if [ -z "$1" ]; then
4 echo "Usage: $0 <jailname>"
5 exit 1
6 fi
7
8 JAILT="jail-$1"
9 JAIL="$1"