SORU
10 Aralık 2010, Cuma


Nasıl/kontrol edin/test/SSH Şifremi doğrulamak mı?

Muhtemelen benim SSH anahtar parolasını unuttum. Yine.

Ama bunun ne olabileceğini tahmin ediyorum. Nasıl eğer haklıysam kontrol edebilirim?

CEVAP
14 Mayıs 2014, ÇARŞAMBA


ssh-indir -y

ssh-keygen -y Eğer bir şifre varsa () için mücadele edecek.

Sen girdidoğruparola, ilişkili ortak anahtar gösterecektir.
Sen girdiyanlışparola load failed görüntüler.

örneğin,

Create a new public/private key pair, with or without a passphrase:
% ssh-keygen -f /tmp/my_key
...
Now see if you can access the key pair: 
% ssh-keygen -y -f /tmp/my_key

İşte uzun bir örnek, çıkış gösteren:

% ssh-keygen -f /tmp/my_key
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /tmp/my_key.
Your public key has been saved in /tmp/my_key.pub.
The key fingerprint is:
de:24:1b:64:06:43:ca:76:ba:81:e5:f2:59:3b:81:fe rob@Robs-MacBook-Pro.local
The key's randomart image is:
 --[ RSA 2048]---- 
|     .           |
|   . . o         |
|    = .          |
|   =             |
|  o = o S .      |
|     =   *       |
|    = o o .      |
|     . .         |
|      E          |
 ----------------- 

% : Now attempt to access the key pair by inputting the correct passphrase.
% : Note that the public key will be shown and exit status ($?) will be 0.
% ssh-keygen -y -f /tmp/my_key
Enter passphrase:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBJhVYDYxXOvcQw0iJTPY64anbwSyzI58hht6xCGJ2gzGUJDIsr1NDQsclka6s0J9TNhUEBBzKvh9nTAYibXwwhIqBwJ6UwWIfA3HY13WS161CUpuKv2A/PrfK0wLFBDBlwP6WjwJNfi4NwxA21GUS/Vcm/SuMwaFid9bM2Ap4wZIahx2fxyJhmHugGUFF9qYI4yRJchaVj7TxEmquCXgVf4RVWnOSs9/MTH8YvH wHP4WmUzsDI uaF1SpCyQ1DpazzPWAQPgZv9R8ihOrItLXC1W6TPJkt1CLr/YFpz6vapdola8cRw6g/jTYms00Yxf2hn0/o8ORpQ9qBpcAjJN
% echo $?
0

% : Now attempt to access the key pair by inputting an incorrect passphrase.
% : Note that "load failed" will be displayed and exit status ($?) will be 1.
% ssh-keygen -y -f /tmp/my_key
Enter passphrase:
load failed
% echo $?
1

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • LatinNinja99

    LatinNinja99

    28 EKİM 2011
  • Matt Davis

    Matt Davis

    4 ŞUBAT 2006
  • SaraBeautyCorner - Nails and Nail Art Designs, DIY, Fashion & Makeup Tutorial

    SaraBeautyCo

    7 EKİM 2012