• Magyar nyelv
  • Gábor Kum

    Kum Gábor
    Specialist in use of Linux, free and open-source software, and in security of bank payment technologies. Also interested in today's privacy challenges, low-bitrate communications, and building a house as a hobby. Lives at the biggest lake of Central Europe, Lake Balaton.

  • Other projects

    HELLOTUX
    Promoting free software all over the world. Free software merchandise from Europe, in partnership with the leading Linux distributions and free software developers.
    www.hellotux.com
     

    Education
    Teaching digital competences for children between ages 9 and 14. The goal is not understanding ancient software but understanding the digital future.
    www.fenyvesirefi.hu
     

    Consulting
    IT consulting and services for government institutions. GAFAM-free and GDPR compliant local and EU-based systems on the base of open source.

  • Magyar nyelv
Jelszó nélküli SSH kapcsolat 3 egyszerű lépésben

24 June 2013, 8:24 pm (Central European Time)

Ha szeretnénk jelszó helyett kulcspárt használni a távoli SSH beléptetéshez, az alábbi három egyszerű lépést kell elvégeznünk.

1. A kulcspár előállítása
Futtassuk a helyi gépünkön az alábbi parancsot a kulcspár létrehozásához:
ssh-keygen
Két fájl jön létre. Ha a kulcsunknak a valami nevet adtuk, akkor a titkos kulcs valami, a nyilvános valami.pub néven jön létre.

2. A publikus kulcs felmásolása a távoli szerverre
A .pub végű titkos kulcsot tároló fájl tartalmát másoljuk be a távoli gépünk .ssh/authorized_keys fájljába. Állítsuk be, hogy az authorized_keys fájlt csak a tulajdonos írhatja és olvashatja (jogosultságok: 600).

3. Állítsuk be a titkos kulcsot a helyi gépünkön
A titkos kulcsot pedig másoljuk be a helyi gépünk .ssh könyvtárába, majd a config nevű fájlba írjuk be a következőket:
Host [távoli_gép_hostneve]
Port 22
IdentityFile ~/.ssh/[a_kulcsfájlunk_neve]

Ha ezzel mind megvagyunk, már be is tudunk lépni a távoli gépre jelszó használata nélkül.

 

Be the first who leaves a comment!

Leave a comment!

Your name:

Your e-mail (kept private and will not be shown):

Comment:

Please type the word candy here:

  • Gábor Kum

    Kum Gábor
    Specialist in use of Linux, free and open-source software, and in security of bank payment technologies. Also interested in today's privacy challenges, low-bitrate communications, and building a house as a hobby. Lives at the biggest lake of Central Europe, Lake Balaton.

  • Other projects

    HELLOTUX
    Promoting free software all over the world. Free software merchandise from Europe, in partnership with the leading Linux distributions and free software developers.
    www.hellotux.com
     

    Education
    Teaching digital competences for children between ages 9 and 14. The goal is not understanding ancient software but understanding the digital future.
    www.fenyvesirefi.hu
     

    Consulting
    IT consulting and services for government institutions. GAFAM-free and GDPR compliant local and EU-based systems on the base of open source.