IT wiki

VU MIF STSC

User Tools

Site Tools


en:duk:ssh_key

This is an old revision of the document!


How to Create an SSH Key for Automated Access to MIF IT Resources (SSH keys)

SSH is a protocol for connecting to a remote computer (server) and running commands on it securely. Remote resources can be accessed in the usual way, either by specifying a username and password or by using SSH keys. An SSH key consists of 2 files - a private key and a public key. The private key is stored on the user's computer and the public key is hosted on the server.

To create an SSH key in a Windows environment, you should do as follows:

  1. Download and run the app puttygen.exe.
  2. Select the desired SSH type, RSA (recommended) or DSA and click Generate. Move the mouse in the main window of the app during generation.
  3. Įveskite rakto komentarą (pvz. savo vartotojo vardą) ir nurodykite rakto apsaugos slaptažodį (angl. passphrase).
  4. Išsaugokite viešą ir privatų raktus savo kompiuteryje, bei neužmirškite nusikopijuoti viršuje esantį sugeneruotą tekstą (Public key for pasting into OpenSSH autorized_keys file), jis reikalingas įrašyti į autorized_keys failus į serverius prie kurių norite prisijungti.

Prisijungimui prie serverio galite naudoti Putty agentą. Pagrindiniame Session lange įveskite serverio IP adresą, prievadą (standartinis 22), o programos nustatymuose (Connection → SSH → Auth) nurodykite savo private key (.ppk) failą. Atsidariusiame lange surinkite prisijungimo vardą root ir SSH rakto apsaugos slaptažodį (angl. passphrase).

en/duk/ssh_key.1658484700.txt.gz · Last modified: 2022/07/22 10:11 by grikiete

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki