Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:automation:unipi-ssh-connect-hidden [2020/06/16 11:20]
avsetula
en:automation:unipi-ssh-connect-hidden [2021/09/01 13:09] (current)
avsetula
Line 1: Line 1:
-====== ​Přístup přes SSH ====== +====== SSH access ​====== 
-~~NOTOC~~ +<WRAP group 100%> 
-Všechny jednotky ​Unipi obsahují plně vybavené Linuxové prostředí na bázi ARM, ke kterému lze po provedení níže uvedených instrukcí přistupovat pomocí konzole ​Secure Shell. ​To umožňuje uživatelům ​Unipi plně využít obrovský potenciál otevřených softwarových balíků+<WRAP half column 81%> 
 +All Unipi devices include a full-featured ​ARM-based Linux environmentwhich is accessible via a Secure Shell console after following the steps belowThis allows the users of Unipi devices to fully leverage the incredible versatility provided by open-source software packages. 
 +</​WRAP>​ 
 +<WRAP half column 15%> 
 +;;# 
 +<​html><​span class="​dev-tag dev-axon">​Axon</​span></​html>​ \\ 
 +<​html><​span class="​dev-tag dev-neuron">​Neuron</​span></​html>​ \\ 
 +<​html><​span class="​dev-tag dev-unipi11">​Unipi&​nbsp1.1</​span></​html>​ 
 +;;# 
 +</​WRAP>​ 
 +</​WRAP>​ 
 +===== Unipi Patron / Axon / Gate ===== 
 +Patron / Axon controllers and Unipi Gate devices have an internal SSH server. This server is enabled by default for all the most current OS images that we provide for these units. The exception is the Mervis OS image, which has SSH disabled. Instructions for enabling SSH can be found in the leaflet supplied with the unit or below. After enabling the server, it is then possible to connect to the PLC through any SSH client in the local network. The following instructions are intended primarily for users who are not yet familiar with SSH.
  
-Proces povolení ​SSH se mezi jednotlivými řadami jednotek Unipi mírně lišíPro jednotky ​Axon je postup uveden níže. U jednotek Unipi Neuron a Unipi 1.1 pak postupujte dle [[cs:files:​software:​os-images:​00-start#​neuron_mervis_os|návodu]] pro počítače Raspberry Pi.+==== Connecting to the service interface, enabling the SSH ==== 
 +The first step is to enable remote access to the SSH internal serverThis configuration is available in the Axon service interface accessible by the following methods
  
-===== Unipi Axon ===== +{{page>en:​hw:​01-axon:​service-web-interface-hidden}}
-Kontroléry Axon disponují interním SSH serverem, který je ve výchozím stavu deaktivován a před jeho použitím je třeba jej spustit - instrukce k tomuto kroku naleznete v letáku dodávaném společně s jednotkou. Po povolení serveru je pak možné se k PLC připojit skrze jakéhokoliv SSH klienta v místní síti. Následující tutoriál je určen zejména pro uživatele, kteří nejsou s SSH obeznámeni,​ a nepředstavuje jediný možný způsob připojení. ​+
  
-==== Připojení k servisnímu rozhraní a povolení SSH ==== +Enter the IP address into your browser'​s address tab and confirmUpon loading the service interface the following screen with multiple buttons should appear
-Prvním krokem je povolit vzdálený přístup k internímu SSH serveruToto nastavení je dostupné v servisním rozhraní Axonu, do kterého se dostanete následujícími způsoby+
  
-{{page>en:hw:01-axon:​service-web-interface-hidden}}+{{ :en:hw:patron_service_mode.png?​direct |}}
  
-Vložte IP adresu do adresního řádku vašeho prohlížeče a potvrďte. Po spuštění servisního rozhraní by Vás měla uvítat obrazovka s několika tlačítky. Pro povolení ​SSH serveru nejprve klikněte na **Enable ssh** uprostřed obrazovky a poté na **Restart System** ​v pravém horním rohu+To enable the SSH server first, click **Enable ssh** in the **Settings** category, and when the successful enable message appears, click **Restart System** ​in the upper right corner
  
 ===== Unipi Neuron / 1.1 ===== ===== Unipi Neuron / 1.1 =====
-U všech nejaktuálnějších obrazů ​OS, které pro naše jednotky poskytujeme je SSH ve výchozím stavu povoleno. Vyjímkou je však Mervis OS image, který má SSH vypnutoPro jeho aktivaci vytvořte soubor ​**ssh** (bez příponypopř. ​*.txt) ​a tento prázdný soubor vložte do bootovacího oddílu SD karty nachystaným ​Mervis OS.+All up-to-date ​OS images provided for Unipi Neuron and Unipi 1.1 controllers have SSH enabled by default except for the Mervis OS image. ​To enable SSH in Mervis OS create a new empty file named **ssh** (without any suffixor with *.txt* suffixand place it into the microSD card'boot directory along with Mervis OS. The SSH server will start after re-inserting the SD card into the PLC 
  
-===== Zvolení SW pro připojení ​===== +===== Selecting a suitable communication software ​=====
-There are many tools which can be used to connect to SSH servers. For this tutorial, we recommend using PuTTY+
  
-{{page>​en:​files:​software:​tools:​putty-hidden}} +There are many tools that can be used to connect to SSH servers. For this tutorial, we recommend using PuTTY
- +
- +
- +
- +
-/* +
-====== Internal SSH console ======  +
- +
-All Unipi devices include a full-featured ARM-based Linux environment,​ which is accessible via a Secure Shell console after following the steps below. This allows the users of Unipi devices to fully leverage the incredible versatility provided by open-source software packages. +
- +
-The process of enabling access to it differs slightly between the three generations of Unipi devices and is detailed below for Unipi Axon. The [[en:​files:​software:​os-images:​00-start#​neuron_mervis_os|process]] for Unipi 1.1 and Unipi Neuron is the same as for ordinary Raspberry Pi. +
- +
-==== Unipi Axon ==== +
- +
-Unipi Axon includes an internal SSH server which is disabled by default and must be enabled according to the instructions in the “Getting Started” leaflet packaged with the device. After the server is enabled it is possible to connect to the device via any SSH client in the local network. This guide is intended to help users who are not otherwise familiar with SSH and is not necessarily the only way of connecting to the device. +
- +
-=== Necessary steps === +
- +
-The first step for connecting to the Unipi Axon SSH console is to enable remote access to the internal SSH server. The server is enabled via the Unipi Axon service interface; the interface can be accessed by following the steps below: +
- +
-  - Hold down the small recessed button on top of the Axon device case using a thin-enough tool. The button can be found next to the USB port labels on the upper side of the device. +
-  - Power up the controller while holding the button down. +
-  - Wait until the device finishes booting into the Unipi service mode. This is indicated by the two rows of LEDs flashing in an alternating fashion.  +
-  - Use a device with a web browser to connect to the Unipi Axon via Ethernet LAN or Wi-Fi. The process is slightly different between the two options: +
-      - Ethernet LAN: The interface will be accessible on IP address 192.168.200.200. The device will also attempt to acquire an additional dynamic IP address via DHCP if DHCP is available.  +
-      - Wi-Fi: The Unipi Axon service mode will create a Wi-Fi access point with SSID “UNIPICONFIG” and password “unipi.technology”. The interface will be accessible on IP addresses 192.168.200.200 and 192.168.201.1 +
- +
-After accessing the web interface you should see a screen with multiple buttons. To enable the SSH server first press the button with “Enable ssh” in the centre of the screen and then the “Restart System” button in the upper right corner of the screen. +
- +
-==== Setting up tools ==== +
- +
-There are many tools which can be used to connect to SSH servers. For this tutorial, we recommend using PuTTY. You can download the PuTTY installer from https://​the.earth.li/​~sgtatham/​putty/​0.70/​w32/​putty-0.70-installer.msi (a third-party link) or many other places on the web.+
  
 {{page>​en:​files:​software:​tools:​putty-hidden}} {{page>​en:​files:​software:​tools:​putty-hidden}}
- 
-/* 
-==== Connecting to the device via PuTTY ==== 
- 
-The next step is to run PuTTY. You should be presented with a relatively complicated interface, however, the only portion which we need to fill in is the “Host Name (or IP address)” field. Type in the IP address of your Unipi device, and then press the “Open” button at the bottom of the PuTTY windows. 
- 
-You should now see a console window asking for a username and password. Use the username “unipi” and password “unipi.technology”;​ these may be changed later, but this is outside the scope of this tutorial. 
- 
-At this point you should see a Linux command prompt with the following format **“unipi@[your-device-ID]:​”** – if so congratulations,​ you have connected to the internal SSH console successfully! 
-*/