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
project:brmdoor:start [2023/01/14 19:37] – [PIN assignments] fix pinout/link for rpi 2B pinout abyssalproject:brmdoor:start [2023/09/17 20:35] (current) – [Raspberry support] pysftp dropped and changed to paramiko for SFTP abyssal
Line 51: Line 51:
   * Raspberry 4B   * Raspberry 4B
  
-Tested Raspbian 9 and 10 (Raspi OS 2021-03-04).+Tested Raspbian 9 and 10 (Raspi OS 2021-03-04). Still works on 2023-09-17, when we needed to drop ''pysftp'' and use ''paramiko'' directly, allows to use ECDSA and Ed25519 keys. 
 + 
 +Raspberry 1 and 2 - it's just slow, everything is slow there. Raspberry 3B+ or 4 with USB boot and USB flash instead of SDcard recommended.
  
 Make sure you enable SPI in device tree or ''dtparam=spi=on'' in ''/boot/config.txt'' depending on Raspi model otherwise reader won't work. Raspi 3B+ boots from USB out of the box, 4B needs enabling it manually. Latest Raspbian does not enable ssh after install put empty file named ''ssh'' in ''/boot'' directory to enable. Make sure you enable SPI in device tree or ''dtparam=spi=on'' in ''/boot/config.txt'' depending on Raspi model otherwise reader won't work. Raspi 3B+ boots from USB out of the box, 4B needs enabling it manually. Latest Raspbian does not enable ssh after install put empty file named ''ssh'' in ''/boot'' directory to enable.
Line 306: Line 308:
  
 {{:project:brmdoor:s_pxl_20230114_183754736.jpg?600|}} {{:project:brmdoor:s_pxl_20230114_183754736.jpg?600|}}
 +
 +==== Outside view of PN532 shield (14 Jan 2022) ====
 +
 +{{:project:brmdoor:s_pxl_20230114_195316653.jpg?600|}}
 +
 +{{:project:brmdoor:s_pxl_20230114_195345155.jpg?600|}}
 ===== Brmdoor HOWTO (displayed after you login as root, in /etc/motd) ===== ===== Brmdoor HOWTO (displayed after you login as root, in /etc/motd) =====
 <code> <code>
Line 373: Line 381:
  
 Add following to your ~/.ssh/config, edit your key if necessary (the key needs to be added on brmbar and on brmdoor): Add following to your ~/.ssh/config, edit your key if necessary (the key needs to be added on brmbar and on brmdoor):
 +
 +You need to have access to ''data.brmlab.cz'' and ''brmdoor'' as well.
 +
 +You need ssh that supports ''ProxyJump'' (should not be a problem unless you have reeeeeaaaaaly old system).
  
 <code> <code>
-Host = brmbar-external + 
-VerifyHostKeyDNS = no +Host data.brmlab.cz 
-Hostname = hrach.eu +User root 
-Port = 22715 +Port 22 
-User = brmlab +IdentityFile = ~/.ssh/whatever_your_key_is
-IdentityFile = ~/.ssh/id_rsa +
-ForwardX11 = no +
-UsePrivilegedPort = no+
 Protocol 2 Protocol 2
  
-Host = brmdoor-external +Host = brmdoor-via-data 
-ProxyCommand ssh brmbar-external nc -q1 %h 22 +ProxyJump data.brmlab.cz 
-Hostname = 192.168.77.247 +Hostname = 192.168.77.30 
-Port = 22715+Port = 22
 User = root User = root
-IdentityFile = ~/.ssh/id_rsa+IdentityFile = ~/.ssh/whatever_your_key_is
 ForwardX11 = no ForwardX11 = no
 UsePrivilegedPort = no UsePrivilegedPort = no
 Protocol 2 Protocol 2
 +</code>
  
 +Then using
 +
 +<code>
 +ssh brmdoor-via-data
 </code> </code>
  
-Then ssh brmdoor-external will get you brmdoor shell.+will get proxyjump over data into brmdoor.
  
project/brmdoor/start.1673725021.txt.gz · Last modified: 2023/01/14 19:37 by abyssal