Mechouate / Hospitracking

0 stars 0 forks source link

Erstellung von "Zugang Ohne Passwort" zwischen server und alle Leser #75

Open Mechouate opened 5 years ago

Mechouate commented 5 years ago

pi@server

pi@server:~ $ ssh-keygen -t rsa

Generating public/private rsa key pair. Enter file in which to save the key (/home/pi/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/pi/.ssh/id_rsa. Your public key has been saved in /home/pi/.ssh/id_rsa.pub. The key fingerprint is: SHA256:2FRgl2fC/BrX8bHg39T+lyxKWgoQIeX+9RaDndiDkCw pi@server The key's randomart image is: +---[RSA 2048]----+ | ..o o+o. | | o o..o= o... | | E +. =...o+| | . o+. B +...+| | o. S= @ .o.| | o . o + .o| | o = . o| | . * . oo| | o .. . .| +----[SHA256]-----+

Mechouate commented 5 years ago

pi@server:~ $ ssh pi@raum1

The authenticity of host 'raum1 (192.168.0.113)' can't be established. ECDSA key fingerprint is SHA256:lqQzEFw80OdA1sHjtJJp15I55/ZZjnMFW5BUPqgPTqo. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'raum1' (ECDSA) to the list of known hosts. pi@raum1's password: Linux Raum1 4.14.34+ #1110 Mon Apr 16 14:51:42 BST 2018 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 Nov 29 01:42:47 2018 from 192.168.0.112 -bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8) -bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8) -bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)

// vor ungefähr gleich leer zeichnen weg machen (nur wegen git Zeichen!)

pi@Raum1: ~ $ mkdir -p ~ /.ssh pi@Raum1: ~ $ exit logout Connection to raum1 closed.

Mechouate commented 5 years ago

// vor ungefähr gleich leer zeichnen weg machen (nur wegen git Zeichen!)

pi@server:~ $ cat ~ /.ssh/id_rsa.pub | ssh pi@raum1 'cat >> .ssh/authorized_keys' pi@raum1's password: bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8) pi@server:~ $ ssh pi@raum1 Linux Raum1 4.14.34+ #1110 Mon Apr 16 14:51:42 BST 2018 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 Nov 29 02:08:18 2018 from 192.168.0.112 -bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8) -bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8) -bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)

pi@Raum1: ~ $ exit logout Connection to raum1 closed.

Mechouate commented 5 years ago

https://mathias-kettner.com/lw_ssh_anmeldung_ohne_passwort.html