• Magyar nyelv
  • Gábor Kum

    Kum Gábor
    Specialist in use of Linux, free and open-source software at small and medium-sized enterprises, 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
     

    Matek Oázis
    Hungary's number one maths e-learning site, with interactive videos, tests and games for children, students, adult learners, teachers and schools.
    www.matekoazis.hu

  • Magyar nyelv

KG.hu

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 plant here:

  • Gábor Kum

    Kum Gábor
    Specialist in use of Linux, free and open-source software at small and medium-sized enterprises, 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
     

    Matek Oázis
    Hungary's number one maths e-learning site, with interactive videos, tests and games for children, students, adult learners, teachers and schools.
    www.matekoazis.hu