EvoForm
Linux SSH Keygen Kullanarak 4 adımda Şifresiz SSH bağlantısı
Konu Evosis Tarafından başlatıldı
Total Sent Messages: 1
Those who follow the issue: 0
Recently Sent Messages: 03-April-2016 18:50
Start Date of Thread: 03-April-2016 18:50
>Genel >Bilgisayar >İşletim Sistemleri >UBUNTU - KUBUNTU - EDUBUNTU - LUBUNTU > Linux SSH Keygen Kullanarak 4 adımda Şifresiz SSH bağlantısı
03-April-2016 18:50 #0
Evosis
Kadim Admin
Bu sistemi
RPM kullanan RHEL/CentOS 7.x/6.x/5.x ve Fedora,
DEB kullanan Debian/Ubuntu ve türevlerinde Aynı komutlarla kullana bilirsiniz.

evosis@evosis~$: ssh-keygen -t rsa

Generating public/private rsa key pair.Enter file in which to save the key (/home/evosis/.ssh/id_rsa): [Press enter key]
Created directory '/home/evosis/.ssh'.
Enter passphrase (empty for no passphrase): [Press enter key]
Enter same passphrase again: [Press enter key]
Your identification has been saved in /home/evosis/.ssh/id_rsa.
Your public key has been saved in /home/evosis/.ssh/id_rsa.pub.
The key fingerprint is:
5f:ad:40:00:8a:d1:9b:99:b3:b0:f8:08:99:c3:ed:d3 evosis@evosis.org
The key's randomart image is:
+--[ RSA 2048]----+
| ..oooE.++|
| o. o.o |
| .. . |
| o . . o|
| S . . + |
| . . . o|
| . o o ..|
| + + |
| +. |
+-----------------+


Adım 2
Şimdi oluşturdugumuz anahtarı diger makinaya kopyalıyalım

evosis@evosis~$: cat .ssh/id_rsa.pub | ssh evosis@sunucu2 'cat >> .ssh/authorized_keys'
evosis@sunucu2's password: [Enter Your Password Here]


Adım 3

evosis@evosis~$: ssh evosis@sunucu2 "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"
evosis@sunucu2's password: [Enter Your Password Here]


Adım 4
Şifresiz baglantı denemesi
evosis@evosis~$: ssh evosis@sunucu2

Artık şifresiz olarak baglantı saglamanız gerek.Eğer saglayamıyorsanız adımları gözden geçirin.

X
Login



Version: λ 2.6.6