Almost Finished

Almost Finished
This commit is contained in:
messon007 2020-04-06 23:31:16 +08:00 committed by GitHub
parent 303717ee21
commit 5eae2561b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,19 +8,19 @@
[#]: author: (Abhishek Prakash https://itsfoss.com/author/abhishek/)
The Keyring Concept in Ubuntu: What is It and How to Use it?
认识Ubuntu里的密钥环
解读Ubuntu里的密钥环概念
======
If you use [automatic login in Ubuntu][1] or other Linux distributions, you might have come across a pop-up message of this sort:
如果您用过[ubuntu里的自动登录功能][1]或者其他的Linux发行版, 您可能遇到过这种弹出消息:
**Enter password to unlock your login keyring 请输入密码解锁您的登录密钥环
The login keyring did not get unlocked when you logged into your computer. 当您登录时登录密钥环未解锁**
**Enter password to unlock your login keyring 请输入密码解锁您的登录密钥环
The login keyring did not get unlocked when you logged into your computer. 登录密钥环在您登录系统时未解锁**
![Enter Password To Unlock Your Login Keyring Ubuntu][2]
It keeps on popping up several times before disappearing if you keep on clicking cancel. You may wonder why do you keep seeing this keyring message all the time?
你需要点击多次取消才能让它消失。你可能想知道为什么系统会一直提示这个密钥环消息框?
你需要点击多次取消才能让它消失。你可能想知道为什么系统会多次反复提示这个密钥环消息?
Let me tell you something. Its not an error. Its a security feature.
让我来告诉你答案。它其实并没有出错,它只是一个安全特性。
@ -28,16 +28,15 @@ Let me tell you something. Its not an error. Its a security feature.
Surprised? Let me explain the keyring concept in Linux.
奇怪吗下面就让我来解释下Linux里的密钥环概念。
### What is keyring in Linux and why is it used?
Linux里的密钥环是什么以及为什么需要它?
### What is keyring in Linux and why is it used? Linux里的密钥环是什么以及为什么需要它?
![][3]
Why do you use a keyring (also called [keychain][4]) in the real life? You use it to keep one or more keys grouped together so that they are easy to find and carry.
在现实生活中你为什么要用一个钥匙环(也叫[钥匙链][4])? 你用它把一把或多把钥匙挂到一起, 以便于携带和寻找。
在现实生活中您为什么要用钥匙环(也叫[钥匙链][4])? 您用它把一把或多把钥匙串到一起, 以便于携带和查找。
Its the same concept in Linux. The keyring feature allows your system to group various passwords together and keep it one place.
Linux里也是类似的。密钥环功能使您的系统可以将各种密码放在一起,并将其保存在一个地方。
Linux里也是类似的。密钥环特性使您的系统可以将各种密码放在一起,并将其保存在一个地方。
Most desktop environments like GNOME, KDE, Xfce etc use an implementation of [gnome-keyring][5] to provide this keyring feature in Linux.
大多数Linux桌面环境像GNOME, KDE, Xfce等采用[gnome的密钥环][5]实现来提供这个功能。
@ -60,10 +59,10 @@ But if you use a browser like Chromium or [Google Chrome in Ubuntu][6], and use
但是如果您使用Chromium或[Ubuntu中的Google Chrome][6]之类的浏览器,并使用它来保存各种网站的登录密码,那么您将遇到麻烦。任何人都可以使用浏览器并利用您在浏览器中保存的密码登录网站。那不就是风险吗?
This is why when you try to use Chrome, it will ask you to unlock the keyring repeatedly. This ensures that only the person who knows the keyrings password (i.e. the account password) can use the saved password in browser for logging in to their respective websites.
这就是为什么当您使用Chrome时它将复地提示您先解锁密钥环。这确保了只有知道密钥环密码的人才能使用在浏览器中保存的密码来登录它们相关的网站。
这就是为什么当您使用Chrome时它将复地提示您先解锁密钥环。这确保了只有知道密钥环密码的人才能使用在浏览器中保存的密码来登录它们相关的网站。
If you keep on cancelling the prompt for keyring unlock, it will eventually go away and let you use the browser. However, the saved password wont be unlocked and youll see sync paused in Chromium/Chrome browsers.
如果您继续取消解锁密钥环的提示它最终将消失并允许您使用浏览器。但是保存的密码将不会被解锁您在Chromium/Chome浏览器上将会看到'同步暂停'的提示。
如果您反复取消解锁密钥环的提示它最终将消失并允许您使用浏览器。但是保存的密码将不会被解锁您在Chromium/Chome浏览器上将会看到'同步暂停'的提示。
![Sync paused in Google Chrome][7]
@ -92,7 +91,7 @@ Where is this keyring located? At the core, its a daemon (a program that runs
Dont worry. You dont have to fight the daemon in the terminal. Most desktop environments come with a graphical application that interacts with this daemon. On KDE, there is KDE Wallet, on GNOME and others, its called Password and Keys (originally known as [Seahorse][8]).
别担心。您不必通过终端来操作守护任务。大多数桌面环境都自带有图形化的应用程序可以和守护进程进行交互。KDE上有KDE钱包GNOME和其他桌面上叫做密码和密钥(原来叫[海马][8])。
![Password And Keys App in Ubuntu][9] Ubuntu上的密码和密钥App
![Password And Keys App in Ubuntu][9]
You can use this GUI application to see what application use the keyring to manage/lock passwords.
您可以用这个GUI程序来查看什么应用程序在用密钥环来管理/保护密码。
@ -100,7 +99,7 @@ You can use this GUI application to see what application use the keyring to mana
As you can see, my system has the login keyring which is automatically created. There is also a keyrings for storing GPG and SSH keys. The [Certificates][10] is for keeping the certificates (like HTTPS certificates) issued by a certificate authority.
您可以看到我的系统有自动创建的登录密钥环。也有一个存储GPG和SSH密钥的密钥环。那个[证书][10]是用来保存证书机构颁发的证书(像HTTPS证书)的。
![Password and Keys application in Ubuntu][11] Ubuntu上的密码和密钥应用程序
![Password and Keys application in Ubuntu][11]
You can also use this application to manually store passwords for website. For example, I created a new password-protected keyring called Test and stored a password in this keyring manually.
您也可以使用这个应用程序来手动保存网站的密码。例如,我创建了一个新的叫做'Test'的被密码保护的密钥环,并手动存储了一个密码。