neysx 06/02/06 11:49:33 Modified: xml/htdocs/doc/en keychain-guide.xml Log: #121732 add KDE instructions
Revision Changes Path 1.2 +53 -5 xml/htdocs/doc/en/keychain-guide.xml file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/keychain-guide.xml?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=gentoo plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/keychain-guide.xml?rev=1.2&content-type=text/plain&cvsroot=gentoo diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/keychain-guide.xml.diff?r1=1.1&r2=1.2&cvsroot=gentoo Index: keychain-guide.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/keychain-guide.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- keychain-guide.xml 2 Dec 2004 18:00:28 -0000 1.1 +++ keychain-guide.xml 6 Feb 2006 11:49:33 -0000 1.2 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding="UTF-8"?> -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/keychain-guide.xml,v 1.1 2004/12/02 18:00:28 swift Exp $ --> +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/keychain-guide.xml,v 1.2 2006/02/06 11:49:33 neysx Exp $ --> <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> <guide link="/doc/en/keychain-guide.xml"> @@ -8,6 +8,9 @@ <author title="Author"> <mail link="[EMAIL PROTECTED]">Eric Brown</mail> </author> +<author title="Editor"> + <mail link="[EMAIL PROTECTED]">Marcelo Góes</mail> +</author> <abstract> This document describes how to use ssh shared keys along with the keychain @@ -15,11 +18,11 @@ </abstract> <!-- The content of this document is licensed under the CC-BY-SA license --> -<!-- See http://creativecommons.org/licenses/by-sa/2.0 --> +<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> <license/> -<version>1.1</version> -<date>2004-12-02</date> +<version>1.2</version> +<date>2006-02-05</date> <chapter> <title>Background</title> @@ -70,7 +73,7 @@ </pre> <warn> -Be sure to choose a strong passphrase, especially if this key is used for +Be sure to choose a strong passphrase, especially if this key is used for root logons! </warn> @@ -263,7 +266,52 @@ </body> </section> +<section> +<title>Using keychain with KDE</title> +<body> + +<p> +If you are a KDE user, instead of using <path>~/.bash_profile</path>, you can +let KDE manage ssh-agent for you. In order to do so, you will have to edit +<path>/usr/kde/${KDE_VERSION}/env/agent-startup.sh</path>, which is read during +KDE's startup, and +<path>/usr/kde/${KDE_VERSION}/shutdown/agent-shutdown.sh</path>, which is +executed during KDE's shutdown, where ${KDE_VERSION} corresponds to the first +two version components of your KDE installation. For example, if you are using +KDE 3.5.1, here is how you could edit those files: +</p> + +<pre caption="Editing /usr/kde/3.5/env/agent-startup.sh"> +if [ -x /usr/bin/ssh-agent ]; then + eval "$(/usr/bin/ssh-agent -s)" +fi +</pre> + +<pre caption="Editing /usr/kde/3.5/shutdown/agent-shutdown.sh"> +if [ -n "${SSH_AGENT_PID}" ]; then + eval "$(ssh-agent -k)" +fi +</pre> + +<p> +Now, all you have to do is launch a term of your choice, like Konsole, and load +the keys you would like to use. For example: +</p> + +<pre caption="Loading ssh key"> +keychain ~/.ssh/id_dsa +<comment>(Enter your key password)</comment> +</pre> + +<p> +Your keys will be remembered until you end your KDE session or kill the +ssh-agent manually. +</p> + +</body> +</section> </chapter> + <chapter> <title>Concluding remarks</title> <section> -- [email protected] mailing list
