- PC からターミナルの新規ウィンドウで,ssh 接続
$ ssh pi@10.10.10.1
The authenticity of host '10.10.10.1 (10.10.10.1)' can't be established.
RSA key fingerprint is 73:e9:fe:e4:16:6e:a5:99:ae:b7:44:12:24:aa:d0:ff.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.10.10.1' (RSA) to the list of known hosts.
pi@10.10.10.1's password:
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: Tue Oct 5 13:23:53 2021 from 192.168.1.120
pi@raspi:~ $
hostapd を起動しているターミナルのウィンドウを見ると,起動メッセージの後に「PC から接続」を知らせるメッセージが加わっている("wlan0: STA a8:96:8a:f1:f6:c9 IEEE 802.11: associated" 以下の4行):
$ sudo hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:1c:15:60 and ssid "raspi"
wlan0: interface state COUNTRY_UPDATE->ENABLED
wlan0: AP-ENABLED
wlan0: STA a8:96:8a:f1:f6:c9 IEEE 802.11: associated
wlan0: AP-STA-CONNECTED a8:96:8a:f1:f6:c9
wlan0: STA a8:96:8a:f1:f6:c9 RADIUS: starting accounting session 3E482A44105B1D34
wlan0: STA a8:96:8a:f1:f6:c9 WPA: pairwise key handshake completed (RSN)
- ssh -X 接続
- ftp 接続 (SFTP)
- http 接続
- PC のターミナルから apache2 を起動:
$ sudo systemctl start apache2
あるいは
$ sudo service apache2 start
- PC のブラウザから http 接続:
|