Here we have accessed rasberry pi from another linux machine using ssh protocol. You can directly login in Rasberry pi. All the files we created, you can download from file link below the article. rnjn@kali:~$ sudo ssh pi@192.168.1.9 [sudo] password for rnjn: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:dVrz8ABI8IVsBdkvYXAYVnpA8Ky45xp7jaPXi/cfUyE. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /root/.ssh/known_hosts:7 remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R "192.168.1.9" ECDSA host key for 192.168.1.9 has changed and you have requested strict checking. Host key verification failed. rnjn@kali:~$ sudo ssh-keygen -f "/root/.ssh/known_hosts" -R "192.168.1.9" # Host 192.168.1.9 found: line 7 /root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old rnjn@kali:~$ sudo ssh pi@192.168.1.9 The authenticity of host '192.168.1.9 (192.168.1.9)' can't be established. ECDSA key fingerprint is SHA256:dVrz8ABI8IVsBdkvYXAYVnpA8Ky45xp7jaPXi/cfUyE. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '192.168.1.9' (ECDSA) to the list of known hosts. pi@192.168.1.9's password: Linux raspberrypi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l 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 Mar 30 10:17:11 2021 pi@raspberrypi:~ $
Create a file cpmount in /usr/local/bin
pi@raspberrypi:~ $ sudo nano /usr/local/bin/cpmount
save this file using Ctrl+o and exit using Ctrl+x.
And change the permission of this file to execute:
pi@raspberrypi:~ $ sudo chmod u+x /usr/local/bin/cpmount
and now you see the file created:
pi@raspberrypi:~ $ cd /usr/local/bin pi@raspberrypi:/usr/local/bin $ ls cpmount pi@raspberrypi:/usr/local/bin $
Now create a file usbstick-handler@.service
in /lib/systemd/system/
using the following command:
pi@raspberrypi:~ $ sudo nano /lib/systemd/system/usbstick-handler@.service
And save this file using Ctrl+o and exit using Ctrl+x.
Now create a file usbstick.rules in /etc/udev/rules.d/ directory using the following command:
pi@raspberrypi:~ $ sudo nano /etc/udev/rules.d/usbstick.rules
Now save using Ctrl+o and exit using Ctrl+x.
Now Reboot the Rasberry Pi System and Usb device will be found under /media directory.
Comments16
cialis mountains in pr
doxycycline order online canada
fildena 120mg buy stromectol over the counter
uqyiianj
gktyvdpme
howwlthp
ddixaakw
efzqtyhz
irdwgoau
niyqizjw
xzfmudhl
exgqyblv
mfhuuzqi
dktxbkub
Быстровозводимые каркасные здания
Получение