Blame
Date:
Mon Jan 23 05:00:25 2023 UTC
Message:
Daily backup
01
2023-01-22
jrmu
version=pmwiki-2.2.130 ordered=1 urlencoded=1
02
2023-01-22
jrmu
agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
03
2023-01-22
jrmu
author=miniontoby
04
2023-01-22
jrmu
charset=UTF-8
05
2023-01-22
jrmu
csum=created
06
2023-01-22
jrmu
ctime=1640270999
07
2023-01-22
jrmu
host=45.136.74.157
08
2023-01-22
jrmu
name=Sshwifty.Install
09
2023-01-22
jrmu
rev=1
10
2023-01-22
jrmu
targets=
11
2023-01-22
jrmu
text=This guide tells you how to install [[https://sshwifty.herokuapp.com/ | sshwifty]] (https://github.com/nirui/sshwifty)%0a%0a%0a!! Notes%0a%0aWe use here some redirection stuff, because it is not possible to use a webserver and the sshwifty without port%0a%0a%0a!! Running as yourself%0a%0a%0a!!! Install%0a%0aFirstly you have to go to [[https://github.com/nirui/sshwifty/releases/]] and download sshwifty_%3cVERSION>_openbsd_amd64.tar.gz %0a%0aAt the moment of making this guide is that: [[https://github.com/nirui/sshwifty/releases/download/0.2.20-beta-release-prebuild/sshwifty_0.2.20-beta-release_openbsd_amd64.tar.gz]]%0a%0aSo what we do is:%0a%0a[@$ mkdir ~/sshwifty%0a$ cd ~/sshwifty%0a$ wget https://github.com/nirui/sshwifty/releases/download/0.2.20-beta-release-prebuild/sshwifty_0.2.20-beta-release_openbsd_amd64.tar.gz%0a$ tar -xzf sshwifty_0.2.20-beta-release_openbsd_amd64.tar.gz@]%0a%0a%0a!!! Setup%0a%0aFor the config it is very simple:%0a%0a[@$ cp sshwifty.conf.example.json config.json%0a$ nano config.json@]%0a%0aYou can set the hostname, then if you don't go to the domain then you wont be seeing the page%0a%0aYou can edit the "SharedKey", this is what you need to login/use the sshwifty%0a%0aYou can edit the presets to what you want%0a%0aCreate SSL certs and put them into the "TLSCertificateFile" and "TLSCertificateKeyFile" (Recommended to copy them to your folder and chown it to you, so no perms errors)%0a%0a%0a%0aNow open your /etc/httpd.conf and add:%0a%0a[@%0aserver "ssh.YOURHOSTNAME" {%0a listen on * port 8080%0a location * {%0a block return 302 "https://ssh.YOURHOSTNAME:8182$REQUEST_URI"%0a }%0a}%0a@]%0a%0aand restart httpd%0a%0a%0a%0aThen allow port 8182 at your pf.conf (add to the http one)%0a%0aAnd reload your pf: [@$ doas pfctl -f /etc/pf.conf@]%0a%0a%0a!!! Starting%0a%0aTo start the sshwifty, I recommend to create a start script:%0a%0astart.sh%0a[@%0a#!/bin/ksh%0aSSHWIFTY_CONFIG=./config.json ./sshwifty_openbsd_amd64%0a@]%0a%0aAnd [@chmod +x start.sh@]%0a%0aThen do [@./start.sh@]%0a%0aand you should be good to go%0a%0a%0a----%0a%0aCopyright (C) 2021 by Miniontoby %3cminiontoby@ircnow.org>
12
2023-01-22
jrmu
time=1640270999
13
2023-01-22
jrmu
author:1640270999=miniontoby
14
2023-01-22
jrmu
csum:1640270999=created
15
2023-01-22
jrmu
diff:1640270999:1640270999:=1,82d0%0a%3c This guide tells you how to install [[https://sshwifty.herokuapp.com/ | sshwifty]] (https://github.com/nirui/sshwifty)%0a%3c %0a%3c %0a%3c !! Notes%0a%3c %0a%3c We use here some redirection stuff, because it is not possible to use a webserver and the sshwifty without port%0a%3c %0a%3c %0a%3c !! Running as yourself%0a%3c %0a%3c %0a%3c !!! Install%0a%3c %0a%3c Firstly you have to go to [[https://github.com/nirui/sshwifty/releases/]] and download sshwifty_%3cVERSION>_openbsd_amd64.tar.gz %0a%3c %0a%3c At the moment of making this guide is that: [[https://github.com/nirui/sshwifty/releases/download/0.2.20-beta-release-prebuild/sshwifty_0.2.20-beta-release_openbsd_amd64.tar.gz]]%0a%3c %0a%3c So what we do is:%0a%3c %0a%3c [@$ mkdir ~/sshwifty%0a%3c $ cd ~/sshwifty%0a%3c $ wget https://github.com/nirui/sshwifty/releases/download/0.2.20-beta-release-prebuild/sshwifty_0.2.20-beta-release_openbsd_amd64.tar.gz%0a%3c $ tar -xzf sshwifty_0.2.20-beta-release_openbsd_amd64.tar.gz@]%0a%3c %0a%3c %0a%3c !!! Setup%0a%3c %0a%3c For the config it is very simple:%0a%3c %0a%3c [@$ cp sshwifty.conf.example.json config.json%0a%3c $ nano config.json@]%0a%3c %0a%3c You can set the hostname, then if you don't go to the domain then you wont be seeing the page%0a%3c %0a%3c You can edit the "SharedKey", this is what you need to login/use the sshwifty%0a%3c %0a%3c You can edit the presets to what you want%0a%3c %0a%3c Create SSL certs and put them into the "TLSCertificateFile" and "TLSCertificateKeyFile" (Recommended to copy them to your folder and chown it to you, so no perms errors)%0a%3c %0a%3c %0a%3c %0a%3c Now open your /etc/httpd.conf and add:%0a%3c %0a%3c [@%0a%3c server "ssh.YOURHOSTNAME" {%0a%3c listen on * port 8080%0a%3c location * {%0a%3c block return 302 "https://ssh.YOURHOSTNAME:8182$REQUEST_URI"%0a%3c }%0a%3c }%0a%3c @]%0a%3c %0a%3c and restart httpd%0a%3c %0a%3c %0a%3c %0a%3c Then allow port 8182 at your pf.conf (add to the http one)%0a%3c %0a%3c And reload your pf: [@$ doas pfctl -f /etc/pf.conf@]%0a%3c %0a%3c %0a%3c !!! Starting%0a%3c %0a%3c To start the sshwifty, I recommend to create a start script:%0a%3c %0a%3c start.sh%0a%3c [@%0a%3c #!/bin/ksh%0a%3c SSHWIFTY_CONFIG=./config.json ./sshwifty_openbsd_amd64%0a%3c @]%0a%3c %0a%3c And [@chmod +x start.sh@]%0a%3c %0a%3c Then do [@./start.sh@]%0a%3c %0a%3c and you should be good to go%0a%3c %0a%3c %0a%3c ----%0a%3c %0a%3c Copyright (C) 2021 by Miniontoby %3cminiontoby@ircnow.org>%0a\ No newline at end of file%0a
16
2023-01-22
jrmu
host:1640270999=45.136.74.157
IRCNow