Technische Universität Braunschweig
  • Studium & Lehre
    • Vor dem Studium
      • Informationen für Studieninteressierte
      • Studiengänge von A-Z
      • Bewerbung
      • Fit4TU - Self-Assessment
      • Beratungsangebote für Studieninteressierte
      • Warum Braunschweig?
    • Im Studium
      • Erstsemester-Hub
      • Semestertermine
      • Lehrveranstaltungen
      • Studien-ABC
      • Studienorganisation
      • Beratungsnavi
      • Zusatzqualifikationen
      • Finanzierung und Kosten
      • Besondere Studienbedingungen
      • Gesundheit & Wohlbefinden
      • Campusleben
    • Nach dem Studium
      • Exmatrikulation und Vorlegalisation
      • Nach dem Abschluss
      • Alumni*ae
    • Strategien und Qualitätsmanagement
      • Strategiepapiere für Studium und Lehre
      • Studienqualitätsmittel
      • Studiengangsentwicklung
      • Qualitätsmanagement
      • Systemakkreditierung
      • Rechtliche Grundlagen
      • TU Lehrpreis
    • Für Lehrende
      • Informationen für Lehrende
      • Konzepte
      • Lernmanagementsystem Stud.IP
    • Kontakt
      • Studienservice-Center
      • Sag's uns - in Studium und Lehre
      • Zentrale Studienberatung
      • Immatrikulationsamt
      • Abteilung 16 - Studium und Lehre
      • Career Service
      • Projekthaus
  • Forschung
    • Forschungsprofil
      • Forschungsschwerpunkte
      • Exzellenzcluster der TU Braunschweig
      • Forschungsprojekte
      • Forschungszentren
      • Forschungsprofile der Professuren
    • Frühe Karrierephase
      • Förderung in den frühen Phasen der wissenschaftlichen Karriere
      • Promotion
      • Postdocs
      • Nachwuchsgruppenleitung
      • Junior Professur und Tenure-Track
      • Habilitation
      • Service-Angebote für Wissenschaftler*innen
    • Forschungsdaten & Transparenz
      • Transparenz in der Forschung
      • Forschungsdaten
      • Open Access Strategie
      • Digitale Forschungsanzeige
    • Forschungsförderung
      • Netzwerk Forschungsförderung
      • Datenbanken und Stiftungen
    • Kontakt
      • Forschungsservice
      • Graduiertenakademie
  • International
    • Internationale Studierende
      • Warum Braunschweig?
      • Studium mit Abschluss
      • Austauschstudium
      • TU Braunschweig Summer School
      • Geflüchtete
      • International Student Support
    • Wege ins Ausland
      • Studium im Ausland
      • Praktikum im Ausland
      • Lehren und Forschen im Ausland
      • Arbeiten im Ausland
    • Internationale Forschende
      • Welcome Support
      • Promotionsstudium
      • Service für gastgebende Einrichtungen
    • Sprachen und interkulturelle Kompetenzvermittlung
      • Deutsch lernen
      • Fremdsprachen lernen
      • Interkulturelle Kompetenzvermittlung
    • Internationales Profil
      • Internationalisierung
      • Internationale Kooperationen
      • Strategische Partnerschaften
      • Internationale Netzwerke
    • International House
      • Wir über uns
      • Kontakt & Sprechstunden
      • Aktuelles und Termine
      • International Days
      • 5. Studentische Konferenz: Internationalisierung der Hochschulen
      • Newsletter, Podcast & Videos
      • Stellenausschreibungen
  • Die TU Braunschweig
    • Unser Profil
      • Ziele & Werte
      • Ordnungen und Leitlinien
      • Allianzen & Partner
      • Hochschulentwicklung 2030
      • Stiftungsuniversität
      • Internationale Strategie
      • Fakten & Zahlen
      • Unsere Geschichte
    • Karriere
      • Arbeiten an der TU
      • Stellenmarkt
      • Berufsausbildung an der TU
    • Wirtschaft & Unternehmen
      • Unternehmensgründung
      • Freunde & Förderer
    • Öffentlichkeit
      • Veranstaltungskalender
      • Check-in für Schüler*innen
      • Hochschulinformationstag (HIT)
      • Kinder-Uni
      • Das Studierendenhaus
      • Gasthörer*innen & Senior*innenstudium
      • Nutzung der Universitätsbibliothek
    • Presse & Kommunikation
      • Stabsstelle Presse und Kommunikation
      • Medienservice
      • Ansprechpartner*innen
      • Tipps für Wissenschaftler*innen
      • Themen und Stories
    • Kontakt
      • Allgemeiner Kontakt
      • Anreise
      • Für Hinweisgeber
  • Struktur
    • Leitung & Verwaltung
      • Das Präsidium
      • Stabsstellen
      • Verwaltung
      • Organe, Statusgruppen und Kommissionen
    • Fakultäten
      • Carl-Friedrich-Gauß-Fakultät
      • Fakultät für Lebenswissenschaften
      • Fakultät Architektur, Bauingenieurwesen und Umweltwissenschaften
      • Fakultät für Maschinenbau
      • Fakultät für Elektrotechnik, Informationstechnik, Physik
      • Fakultät für Geistes- und Erziehungswissenschaften
    • Institute
      • Institute von A-Z
    • Einrichtungen
      • Universitätsbibliothek
      • Gauß-IT-Zentrum
      • Zentrale Personalentwicklung
      • International House
      • Projekthaus
      • Transferservice
      • Hochschulsportzentrum
      • Einrichtungen von A-Z
    • Studierendenschaft
      • Studierendenparlament
      • Fachschaften
      • Studentische Wahlen
    • Lehrer*innenbildung
      • Lehrer*innenfortbildung
      • Forschung
    • Chancengleichheit
      • Gleichstellung
      • Familie
      • Diversität
    • Kontakt
      • Personensuche
  • Suche
  • Schnellzugriff
    • Personensuche
    • Webmail
    • cloud.TU Braunschweig
    • Messenger
    • Mensa
    • TUconnect (Studierendenportal)
    • Lehrveranstaltungen
    • Im Notfall
    • Stud.IP
    • UB Katalog
    • Status GITZ-Dienste
    • Störungsmeldung GB3
    • IT Dienste
    • Informationsportal (Beschäftigte)
    • Beratungsnavi
    • Linksammlung
    • DE
    • EN
    • IBR YouTube
    • Facebook
    • Instagram
    • YouTube
    • LinkedIn
    • Mastodon
Menü
  • Struktur
  • Fakultäten
  • Carl-Friedrich-Gauß-Fakultät
  • Institute
  • Institut für Betriebssysteme und Rechnerverbund
  • IBR Knowledge Base
Logo IBR
IBR Login
  • Institut für Betriebssysteme und Rechnerverbund
    • News
    • Wir über uns
      • Gesamtes Team
      • Anreise
      • Raumplan
      • Projekte
      • Veröffentlichungen
      • Software
      • News Archiv
    • Connected and Mobile Systems
      • Team
      • Lehrveranstaltungen
      • Abschlussarbeiten
      • Projekte
      • Veröffentlichungen
      • Software
      • Datensätze
    • Verlässliche Systemsoftware
      • Übersicht
      • Team
      • Lehre
      • Arbeiten & Jobs
      • Forschung
      • Publikationen
    • Algorithmik
      • Team
      • Lehrveranstaltungen
      • Abschlussarbeiten
      • Projekte
      • Veröffentlichungen
    • Mikroprozessorlabor
    • Studium
      • Sommersemester 2025
      • Wintersemester 2024/2025
      • Abschlussarbeiten
    • Service
      • Bibliothek
      • Mailinglisten
      • Webmail
      • Knowledgebase
      • Wiki
      • Account Management
      • Service-Status
    • Spin-Offs
      • Docoloc
      • bliq (formerly AIPARK)
      • Confidential Technologies
    • Forschungsverbünde
      • IST.hub

preppi - Preparing Raspberry Pis

AutorFrank Steinberg
SchlüsselworteRaspberryPi Pi Raspi SSH

Preppi ist obsolet und nicht mehr in Betrieb. Raspi-Netzkonfigurationen bitte mit Frank besprechen.

Default Raspian Images have a standard password "raspberry". Once SSH access is enabled and the device is connected to the IBR network, various potentially unknown people may login and do arbitrary bad things. This has to be avoided as good and soon as possible.

An IBR daemon continously tries to identify such fresh devices and secure them by modifying their password and configuring SSH access based on public keys of users which are allowed to access the device. Configuration is taken from the IBR LDAP.

First, you may have to identify your Pi:

$ ibr-preppi

Most recent Pi DHCPDISCOVER activity:

15:42:31 b8:27:eb:c1:dc:9f 10.1.2.112     testbedpi-room112 (yschroed)
15:49:40 b8:27:eb:7a:6a:7a 10.1.2.16      infodisplay01 (gernert)
15:50:03 b8:27:eb:69:91:74 10.1.4.95      (unknown, suggested name: pi-9174)
15:51:01 b8:27:eb:fd:55:c4 10.1.4.92      (unknown, suggested name: pi-55c4)

First, you should identify your Pi from the list above. If your device
does not yet exist in LDAP, you should create it using dirac(1), but in
most cases new Pis get registered in LDAP automatically. If it does exist
and you are not yet its supervisor, you may become the supervisor:

  dirac "host pi-XXXX ; set ibrSupervisorDn `whoami`"

Then you may optionally grant other users SSH access:

  dirac "host pi-XXXX ; add ibrOperatorDn username"

Users' public SSH keys must be stored in LDAP or in the common places in
their home directories. Upon the next reboot of your SSH-enabled fresh
Pi, preppi should (re)configure it, so that the standard password no
longer works and the authorized IBR users are able to login as user "pi".

Read https://www.ibr.cs.tu-bs.de/kb/preppi.html for more information.

    

  • First, you may have to identify your Pi:
    $ ibr-preppi
    
    Most recent Pi DHCPDISCOVER activity:
    
    15:28:44 b8:27:eb:2d:25:d3 10.1.2.6       iz105-control (yschroed)
    15:42:31 b8:27:eb:c1:dc:9f 10.1.2.112     testbedpi-room112 (yschroed)
    15:50:03 b8:27:eb:69:91:74 10.1.4.95      (unknown, suggested name: pi-9174)
    
  • If your device is not yet known in LDAP, you should create it using dirac(1):
    $ dirac
    dirac - IBR directory access tool (0.1, 2019-07-02)
            https://gitlab.ibr.cs.tu-bs.de/steinb/dirac
    [1] IBR:IBRUser steinb > hosts
    [2] IBR: 195 IBRHosts > create
    Hostname: pi-9174
    MAC address: b8:27:eb:69:91:74
    Initial expire date (YYYY-MM-DD) [2019-08-01]: 
    Supervisor username (must be a member of mitarb) [steinb]: 
  • Otherwise, if your device is known in LDAP, you may have to become the Supervisor first. Staff members are able to "steal" ownership from fellows:
    [2] IBR:IBRHost pi-55c4 > set ibrSupervisorDn pullwitt
  • Please use the hostname scheme "pi-aabb" based on the right-most two bytes of the Pi's MAC address. This will allow us to identify Pis more easily in the future.
  • In order to have more human-friendly names, you may ask an admin to assign host aliases.
  • When you want other users to be able to login to the device, you may add their usernames to the list of operators:
    [4] IBR:IBRHost pi-55c4 > add ibrOperatorDn y0000009
    For this to work properly, the users' public SSH key(s) must be stored to their LDAP record or saved to their home directory in the common place. Of course, you may also remove previous users using the remove command.
  • Afterwards, upon the next reboot of your SSH-enabled fresh or "pre-preppi'ed" Pi, preppi should (re)configure it, so that the standard password no works and the intended users are allowed to login as user "pi" without a password:
    $ ssh pi@pi-55c4
    
    This RaspberryPi host has been secured by IBR preppi.
    See https://www.ibr.cs.tu-bs.de/kb/preppi.html.
    
    Linux raspberrypi 4.19.57+ #1244 Thu Jul 4 18:42:50 BST 2019 armv6l
    
    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.
    
    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    Last login: Thu Jul 18 11:31:16 2019 from 134.169.35.174
    pi@raspberrypi:~ $ 
  • If you modify the password on your flash device before booting the Pi, of course, preppi cannot and will not change anything.
  • We do not yet care about Pi Wifi interfaces.
  • We do not yet care about non-Debian-like Pi distributions.
  • We do not yet care about other MAC address prefixes but b8:27:eb: and dc:a6:32:.

aktualisiert am 23.02.2022, 12:58 von Frank Steinberg

Für alle

Stellen der TU Braunschweig
Jobbörse des Career Service
Merchandising
Sponsoring- & Spendenleistungen
Drittmittelgeförderte Forschungsprojekte
Vertrauenspersonen für Hinweisgeber

Für Studierende

Semestertermine
Lehrveranstaltungen
Studiengänge von A-Z
Informationen für Erstsemester
TUCard

Interne Tools

Status GITZ-Dienste
Handbuch für TYPO3 (Intern)
Corporate Design-Toolbox (Intern)
Glossar (DE-EN)
Meine Daten ändern
Hochschulöffentliche Bekanntmachungen

Kontakt

Technische Universität Braunschweig
Universitätsplatz 2
38106 Braunschweig
Postfach: 38092 Braunschweig
Telefon: +49 (0) 531 391-0

Anreise

© Technische Universität Braunschweig
Impressum Datenschutz Barrierefreiheit