User Tools

Site Tools


services:remote-access:linuxssh

Differences

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

Link to this comparison view

Next revision
Previous revision
services:remote-access:linuxssh [2020/04/15 07:03] – created ziehmservices:remote-access:linuxssh [2023/06/22 09:10] (current) arvidkrein
Line 25: Line 25:
   * -C - enable compression; use this when enabling X forwarding   * -C - enable compression; use this when enabling X forwarding
  
 +=====Key authentication (required from outside the FU network)=====
 +Remote access using ssh from outside the FU network now requires **ssh-key** authentication.
 +Key authentication works by having files on each machine that act as sort "password" instead.
 +
 +To create a key file, on the **local** computer use the command ''ssh-keygen'' and follow it's instructions.
 +{{:services:remote-access:ssh-keygen.png}}
 +
 +By default this command produces two files in the ''.ssh'' subdirectory of your home folder.
 +The file ''id_rsa'' is your **key** file, also called **private key**.
 +The file ''id_rsa.pub'' is the corresponding **lock**, also called **public key**.
 +
 +To complete the setup you have to append the contents of ''id_rsa.pub'' to the ''.ssh/authorized_keys'' file on the **remote** computer.
 +One way to do this is to move ''id_rsa.pub'' from your **local** to the remote computer and then, on the **remote computer** run
 +<xterm>
 +cat id_rsa.pub >> .ssh/authorized_keys
 +</xterm>
 +
 +Now you should be able to log in using key authentication.
services/remote-access/linuxssh.1586934231.txt.gz · Last modified: 2020/04/15 07:03 by ziehm

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki