openssl sha256
2017-11-29-raspbian-stretch-lite.zip |
proc
/proc
proc
defaults
0 0 PARTUUID=117891eb-01 /boot vfat defaults 0 2 PARTUUID=117891eb-02 / ext4 defaults,noatime 0 1 # a swapfile is not a swap partition, no line here # use dphys-swapfile swap[on|off] for that PARTUUID=117891eb-03 none swap sw 0 0 |
# cd /etc/sudoers.d # cp 010_pi-nopasswd 020_hogehoge-nopasswd |
hogehoge ALL=(ALL) NOPASSWD: ALL |
# deluser pi |
interfaces(5) file
used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto lo iface lo inet loopback iface eth0 inet manual allow-hotplug wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf iface wlan0 inet static address 192.168.1.205 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 allow-hotplug wlan1 iface wlan1 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf |
$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/hogehoge/.ssh/id_rsa): (その ままEnterを押す。鍵の保存先は.ssh/) Created directory '/home/hogehoge/.ssh'. Enter passphrase (empty for no passphrase): (パスフレーズを入力) Enter same passphrase again: (パスフ レーズを再入力) Your identification has been saved in /home/hogehoge/.ssh/id_rsa. Your public key has been saved in /home/hogehoge/.ssh/id_rsa.pub. The key fingerprint is: 0f:48:8c:4d:89:7b:d9:2c:09:b4:95:cc:2c:22:6c:e0 hogehoge@akagera The key's randomart image is: +--[ RSA 2048]----+ |+ ..#oo | |oo. +B* | |.E .ox+= | | ..=.o | | ...S | | o | | . | | | | | +-----------------+ |
$ssh-copy-id -i
~/.ssh/id_rsa.pub raspberrypi.local |
#PasswordAuthentication
yes ↓ PasswordAuthentication no usePAN yes ↓ usePAM no |
$ sudo apt-get install
ufw $ sudo ufw allow ssh $ sudo ufw enable $ sudo ufw allow http |
#!/bin/bash /usr/bin/wget -O - 'https://mydns012345:abcdefghijk@mydns.jp/login.html' >/home/hogehoge/mydns_log.html |
$ chmod 700
mydns_sh |
$ ./mydns_sh |
# m h dom mon
dow command 3 1 * * * /home/karappi/mydns_sh |