Files
timmy-config/.bash_history
2026-03-31 20:02:01 +00:00

44 lines
1.2 KiB
Bash

mkdir -p /root/.ssh && chmod 700 /root/.ssh && printf '%s\n' 'ssh-ed25519
AAAAC3NzaC1lZDI1NTE5AAAAIIVfOrazEmNNpM9dCKLwbJVcpwatEe8pbS1S0O3R1Mjx apayne@MM.local'
mkdir -p /root/.ssh
cat >/root/.ssh/authorized_keys <<'EOF'
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIVfOrazEmNNpM9dCKLwbJVcpwatEe8pbS1S0O3R1Mjx
apayne@MM.local
EOF
chmod 700 /root/.ssh
chmod 600 /root/.ssh/authorized_keys
chown -R root:root /root/.ssh
sshd -T | egrep 'permitrootlogin|pubkeyauthentication|authorizedkeysfile'
systemctl restart ssh
;
"
'
'
'
;
cat -n /root/.ssh/authorized_keys
cat >>/root/.ssh/authorized_keys <<'EOF'
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIVfOrazEmNNpM9dCKLwbJVcpwatEe8pbS1S0O3R1Mjx
apayne@MM.local
EOF
chmod 700 /root/.ssh
chmod 600 /root/.ssh/authorized_keys
chown -R root:root /root/.ssh
tail -n 3 /root/.ssh/authorized_keys
systemctl restart ssh
vi /root/.ssh/authorized_keys
ls
systemctl stop nginx
systemctl stop nostr-rs-relay
systemctl list-units --type=service | grep -i nostr
free -h
systemctl list-units --type=service | grep -i nostr
hermes status
systemctl stop nginx
systemctl disable nginx
ps aux --sort=-%mem | head -10