Hallo Alex,
super - danke dir für deine Bemühungen.
Hier das Ergebnis meines Versuchs:
Code: Alles auswählen
# mkdir /usr/local/etc/ssh/C-Comatic
# ssh-keygen -f /usr/local/etc/ssh/C-Comatic/key
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /usr/local/etc/ssh/C-Comatic/key.
Your public key has been saved in /usr/local/etc/ssh/C-Comatic/key.pub.
The key fingerprint is:
.....
# ssh-copy-id -i /usr/local/etc/ssh/C-Comatic/key root@C-Comatic
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/usr/local/etc/ssh/C-Comatic/key.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
expr: warning: '^ERROR: ': using '^' as the first character of a basic regular expression is not portable; it is ignored
/usr/bin/ssh-copy-id: ERROR: ssh: Could not resolve hostname c-comatic: Name or service not known
Allerdings steht mein piVCCU-PI gerade auf Kriegsfuß mit dem DNS
Hier eine Windows-Büchse:
Code: Alles auswählen
Verbindungsspezifisches DNS-Suffix:
IPv4-Adresse . . . . . . . . . . : 192.168.10.64(Bevorzugt)
Subnetzmaske . . . . . . . . . . : 255.255.255.0
Standardgateway . . . . . . . . . : 192.168.10.1
DNS-Server . . . . . . . . . . . : 192.168.10.53
Code: Alles auswählen
Ping wird ausgeführt für c-comatic.local [192.168.10.90] mit 32 Bytes Daten:
Antwort von 192.168.10.90: Bytes=32 Zeit<1ms TTL=64
Antwort von 192.168.10.90: Bytes=32 Zeit=1ms TTL=64
Antwort von 192.168.10.90: Bytes=32 Zeit<1ms TTL=64
Antwort von 192.168.10.90: Bytes=32 Zeit<1ms TTL=64
Und nun die CCU:
Code: Alles auswählen
# cat /etc/resolv.conf
nameserver 192.168.10.53
nameserver 192.168.10.1
# ping c-comatic
ping: bad address 'c-comatic'
# ping sw2k12
ping: bad address 'sw2k12'
#
sw2k12 ist der DNS-Server - 192.168.10.53
Code: Alles auswählen
# ping web.de
PING web.de (82.165.230.17): 56 data bytes
64 bytes from 82.165.230.17: seq=0 ttl=245 time=16.132 ms
64 bytes from 82.165.230.17: seq=1 ttl=245 time=15.565 ms
64 bytes from 82.165.230.17: seq=2 ttl=245 time=16.148 ms
64 bytes from 82.165.230.17: seq=3 ttl=245 time=15.892 ms
Was ist das? - bzw. was muss ich noch iwo eintragen?
Ich liebe (Linux-) Sachen, die ich mir nicht erklären kann.
Hier noch als Ergänzung - die Test piVccu:
Code: Alles auswählen
NAME=Buildroot
VERSION=2018.08.2-gea07739-dirty
ID=buildroot
VERSION_ID=2018.08.2
PRETTY_NAME="Buildroot 2018.08.2"
#
Der Host:
Code: Alles auswählen
root@raspberrypi:~# cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"