MX on Linux: Difference between revisions

923 bytes added ,  08:13, 1 September 2020
m
Line 184: Line 184:
=== Secure Shell Home ===
=== Secure Shell Home ===


Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. By default, this optional way for another device to see your PI is turned off.  You can turn it on by the configuration application on your Pi, but you may want it turned on as your Pi boots up and you can do that by adding a file to your micro-SD card.
==== What is SSH?====


The file must be named "SSH" with those three letters in capitals, but with no file extension. On a Windows PC, if you right click (while viewing the boot directory on the card) there is an option called '''New'''  and if you select ''a text file'' it will create an empty file with the extension '''.txt'''. (In windows there is an option to hide extensions which is on by default, so you may need to deselect this option ['''New''' menu -> ''Options''] to see this extension).  On Windows you can open the file using Notepad to verify it is empty, if you gave accidentally created a file of another type like word processing it will be full of characters some of which do not display. Anyway, you must remove any extension from the file name so it is really just '''SSH'''.  Type into the file <tt>touch ssh</tt>, but nothing else, no empty lines, no end of line characters.
Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. If you have two devices (your Pi and another computer), SSH will allow the two devices to exchange commands and responses between a terminal and a computer.  You may be too young to remember when communication with a computer was often done remotely using a Teletype or similar device acting in terminal mode, just 4 decades ago this would have been a familiar experience to anyone working with computers, now it may seem strange for you. It is possible you have remote connection from home to a computer at your work (although that probably uses a different protocol as the network is likely to be more secured).
 
====How to set up SSH?====
 
By default, this optional way for another device to see your PI and to pass commands to your Pi and see the resulting output.
*If you have a keyboard, mouse, and monitor/TV;  you can turn SSH on in the configuration application on your Pi,
* but you can also add a file to your micro-SD card that will ensure SSH is turned on, and stays on, as your Pi boots up and the instructions to do that are in next paragraph.
 
The file must be named "SSH" with those three letters in capitals, but with no file extension. You can create the file with whatever text editor you have available. On a Windows PC, if you right click (while viewing the boot directory on the card) there is an option called '''New'''  and if you select ''a text file'' it will create an empty file with the extension '''.txt'''. (In windows there is an option to hide extensions which is on by default, so you may need to deselect this option ['''New''' menu -> ''Options''] to see this extension).  On Windows you can open the file using Notepad to verify it is empty, if you gave accidentally created a file of another type like word processing it will be full of characters some of which do not display. Anyway, you must remove any extension from the file name so it is really just '''SSH'''.  Type into the file <tt>touch ssh</tt>, but nothing else, no empty lines, no end of line characters.


When the card is inserted into your Pi, on boot this file will be removed and the SSH option will be enabled.
When the card is inserted into your Pi, on boot this file will be removed and the SSH option will be enabled.
====How to use SSH?====


If you have a Windows PC, this will allow you to open a '''Command''' prompt, '''Power Shell''', or '''Terminal''' window (the selection you have available depends on certain settings). If you have a Linux or Mac device, open '''Terminal'''. Next, assuming your Pi is running, on whatever other device you have on the same local network, type <tt>ssh pi@raspberrypi</tt> to get access to default user in your Pi.  (As an alternative for Windows operating system, you can install PuTTY, and use that).
If you have a Windows PC, this will allow you to open a '''Command''' prompt, '''Power Shell''', or '''Terminal''' window (the selection you have available depends on certain settings). If you have a Linux or Mac device, open '''Terminal'''. Next, assuming your Pi is running, on whatever other device you have on the same local network, type <tt>ssh pi@raspberrypi</tt> to get access to default user in your Pi.  (As an alternative for Windows operating system, you can install PuTTY, and use that).
5,838

edits