emile.space r2wa.rs

            
            

1. public git via ssh

mkdir git

1.1. setup /dev

mkdir dev
cd dev
mknod -m 666 null c 1 3
mknod -m 666 tty c 5 0
mknod -m 666 zero c 1 5
mknod -m 666 random c 1 8

1.2. setup permissions

chown root:root git
chown 0755 git

1.3. setup a shell

cd git
mkdir bin
cp /bin/bash .

identify libs:

ldd /bin/bash

create libs folder

cd ..
mkdir -p lib/x86_64-linux-gnu/
mkdir lib64

copy libs to folder

cp ... ...

1.4. create ssh user

useradd git

mkdir etc
cp /etc/passwd etc
cp /etc/group etc

cat << EOF
Match User git
ChrootDirectory /var/www/git
EOF >> /etc/ssh/sshd_config

systemctl restart sshd




rss feed of @hanemile@emile.space lieu webring search engine XXIIVV webring activitypub ring
emile - 1733420135.935396s - generated using vokobe "0.1.3"