Benjen an den Wlan Router gehängt. Mit Tastatur und Bildschirm könnte ich mich jetzt einloggen und per
ifconfig eth0
rausfinden, welche interne IP-Adresse dem neuen Freund zugewiesen wurde. Und über die eindeutige IP-Adresse kann ich das Geräte dann pingen und sshen, richtig? Soweit der Plan. Router und Bildschirm stehen allerdings in zwei verschiedenen Räumen und die Kabel waren zwar lang eingeplant, sind aber leider nicht wirklich lang genug. Hrmpflrmpl. Hinter Kommoden und Bücherregalen verstaute Kabel rausdängeln? Hrmpflbrummelgrumm. Vielleicht geht es auch anders, machen wir mal einen auf doof.
naf@Nikolaj:~$ ping Benjen
ping: unknown host Benjen
naf@Nikolaj:~$ ssh naf@Benjen
ssh: Could not resolve hostname Benjen: Name or service not known
HRMPF! Aber klar. Den Hostname kennt er nicht, den hab ich ihm nicht beigebracht. So ist kein Weg zur IP-Adresse. Aber: die
IP-Adresse müsste ich ja kennen. Mein Router vergibt im definierten
Range ausgehend von sich, dann aufsteigend nach Einwahlzeitpunkt IP-Adressen, richtig? Und wer hat den Range definiert? Ha. Die IANA (Internet Assigned Numbers Authority) via
RFC 1918,
Cisco und ich. Also: direkt pingen und raten ist jetzt angesagt.
naf@Nikolaj:~$ ifconfig wlan0
wlan0 Link encap:Ethernet Hardware Adresse 00:24:6c:3d:64:g0
inet Adresse:192.168.1.3 Bcast:192.168.1.255 Maske:255.255.255.0
inet6-Adresse: fe20::251:6cff:da4c:89f0/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:2547 errors:0 dropped:0 overruns:0 frame:0
TX packets:2430 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX-Bytes:2475774 (2.4 MB) TX-Bytes:399695 (399.6 KB)
naf@Nikolaj:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_req=1 ttl=64 time=279 ms
64 bytes from 192.168.1.1: icmp_req=2 ttl=64 time=247 ms
^C
--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 526ms
rtt min/avg/max/mdev = 247.213/321.121/388.672/46.271 ms
naf@Nikolaj:~$ ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_req=1 ttl=64 time=4.65 ms
64 bytes from 192.168.1.2: icmp_req=2 ttl=64 time=2.71 ms
64 bytes from 192.168.1.2: icmp_req=3 ttl=64 time=2.80 ms
64 bytes from 192.168.1.2: icmp_req=4 ttl=64 time=2.94 ms
^C
--- 192.168.1.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3006ms
rtt min/avg/max/mdev = 2.716/3.281/4.656/0.800 ms
naf@Nikolaj:~$ ping 192.168.1.4
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
From 192.168.1.3 icmp_seq=1 Destination Host Unreachable
From 192.168.1.3 icmp_seq=2 Destination Host Unreachable
From 192.168.1.3 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.1.4 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3014ms
pipe 3
So. Freunde sind identifiziert. Dann auf zum Kennenlernen.
naf@Nikolaj:~$ ssh 192.168.1.2
The authenticity of host '192.168.1.2 (192.168.1.2)' can't be established.
ECDSA key fingerprint is 7a:b2:dc:74:b3:9c:53:85:22:26:84:dc:e0:ab:45:2c:.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.2' (ECDSA) to the list of known hosts.
naf@192.168.1.2's password:
Linux Benjen 3.6.11+ #371 PREEMPT Thu Feb 7 16:31:35 GMT 2013 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: Sat Feb 9 09:32:27 2013
naf@Benjen ~ $
Ziemlich billig, brachial und schmutzig. Aber dafür alles von aufm Sofa aus. Und wie siehts jetzt auf meinem Rechner aus?
naf@Nikolaj:~$ ls -la | grep ssh
drwx------ 2 naf naf 4096 Mär 23 10:02 .ssh
naf@Nikolaj:~$ tree ./.ssh
./.ssh
└── known_hosts