User Tools

Site Tools


project:brmdoor:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
project:brmdoor:start [2018/07/24 19:25] – Support for uploading status to VPS in SpaceAPI.net format, mapping publicly available on brmlab.cz abyssalproject:brmdoor:start [2018/10/06 19:58] – [Remote access from outside brmlab] abyssal
Line 129: Line 129:
 of json is in under "state" key - "open" (boolean) and "lastchange" (Unix timestamp).  of json is in under "state" key - "open" (boolean) and "lastchange" (Unix timestamp). 
  
 +Currently to be compatible with old URL (https://status.brmlab.cz/brmd/brmstatus.json) 
 +for the spaceAPI.net since we can't change it and can't submit new, there is alias
 +in ''/etc/apache2/sites-available/status.brmlab.cz.conf'' to directory ''/home/brmdoor-web/spaceapi-status'' where status file is
 +uploaded by brmdoor (it's over SFTP with internal-sftp chroot, ssh-key login, so that in case of compromise of brmdoor there
 +is not much the attacker could do with it (and password can't be bruteforced).
 ===== PIN assignments ===== ===== PIN assignments =====
  
Line 229: Line 234:
   * Setting topic is not finished (python-irc has fairly bad API to retrieve topic)   * Setting topic is not finished (python-irc has fairly bad API to retrieve topic)
  
 +===== Remote access from outside brmlab =====
 +
 +Add following to your ~/.ssh/config, edit your key if necessary (the key needs to be added on brmbar and on brmdoor):
 +
 +<code>
 +Host = brmbar-external
 +VerifyHostKeyDNS = no
 +Hostname = hrach.eu
 +Port = 22715
 +User = brmlab
 +IdentityFile = ~/.ssh/id_rsa
 +ForwardX11 = no
 +UsePrivilegedPort = no
 +Protocol 2
 +
 +Host = brmdoor-external
 +ProxyCommand = ssh brmbar-external nc -q1 %h 22
 +Hostname = 192.168.77.247
 +Port = 22715
 +User = root
 +IdentityFile = ~/.ssh/id_rsa
 +ForwardX11 = no
 +UsePrivilegedPort = no
 +Protocol 2
 +
 +</code>
 +
 +Then ssh brmdoor-external will get you brmdoor shell.
  
project/brmdoor/start.txt · Last modified: 2023/09/17 20:35 by abyssal