1 |
rane 05/09/29 21:51:19 |
2 |
|
3 |
Modified: xml/htdocs/doc/en/articles openssh-key-management-p1.xml |
4 |
openssh-key-management-p2.xml |
5 |
openssh-key-management-p3.xml |
6 |
Log: |
7 |
just a few final touch ups |
8 |
|
9 |
Revision Changes Path |
10 |
1.2 +5 -5 xml/htdocs/doc/en/articles/openssh-key-management-p1.xml |
11 |
|
12 |
file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/openssh-key-management-p1.xml?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=gentoo |
13 |
plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/openssh-key-management-p1.xml?rev=1.2&content-type=text/plain&cvsroot=gentoo |
14 |
diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/openssh-key-management-p1.xml.diff?r1=1.1&r2=1.2&cvsroot=gentoo |
15 |
|
16 |
Index: openssh-key-management-p1.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/openssh-key-management-p1.xml,v |
19 |
retrieving revision 1.1 |
20 |
retrieving revision 1.2 |
21 |
diff -u -r1.1 -r1.2 |
22 |
--- openssh-key-management-p1.xml 29 Sep 2005 20:59:13 -0000 1.1 |
23 |
+++ openssh-key-management-p1.xml 29 Sep 2005 21:51:19 -0000 1.2 |
24 |
@@ -1,5 +1,5 @@ |
25 |
<?xml version='1.0' encoding="UTF-8"?> |
26 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/openssh-key-management-p1.xml,v 1.1 2005/09/29 20:59:13 rane Exp $ --> |
27 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/openssh-key-management-p1.xml,v 1.2 2005/09/29 21:51:19 rane Exp $ --> |
28 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
29 |
|
30 |
<guide link="/doc/en/articles/openssh-key-management-p1.xml"> |
31 |
@@ -266,7 +266,7 @@ |
32 |
</p> |
33 |
|
34 |
<pre caption="Logging in with passphrase"> |
35 |
-# <i>ssh drobbins@remotebox</i> |
36 |
+$ <i>ssh drobbins@remotebox</i> |
37 |
Enter passphrase for key '/home/drobbins/.ssh/identity': <comment>(enter passphrase)</comment> |
38 |
Last login: Thu Jun 28 20:28:47 2001 from localbox.gentoo.org |
39 |
|
40 |
@@ -448,11 +448,11 @@ |
41 |
|
42 |
<ul> |
43 |
<li> |
44 |
- Read Daniel's other two articles in this series, "<uri |
45 |
+ Read Daniel's other two articles in this series, <uri |
46 |
link="/doc/en/articles/openssh-key-management-p2.xml">OpenSSH key |
47 |
- management, Part 2</uri>" and "<uri |
48 |
+ management, Part 2</uri> and <uri |
49 |
link="/doc/en/articles/openssh-key-management-p3.xml">OpenSSH key |
50 |
- management, Part 3</uri>". |
51 |
+ management, Part 3</uri> |
52 |
</li> |
53 |
<li> |
54 |
Be sure to visit the home of <uri |
55 |
|
56 |
|
57 |
|
58 |
1.2 +2 -2 xml/htdocs/doc/en/articles/openssh-key-management-p2.xml |
59 |
|
60 |
file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/openssh-key-management-p2.xml?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=gentoo |
61 |
plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/openssh-key-management-p2.xml?rev=1.2&content-type=text/plain&cvsroot=gentoo |
62 |
diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/openssh-key-management-p2.xml.diff?r1=1.1&r2=1.2&cvsroot=gentoo |
63 |
|
64 |
Index: openssh-key-management-p2.xml |
65 |
=================================================================== |
66 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/openssh-key-management-p2.xml,v |
67 |
retrieving revision 1.1 |
68 |
retrieving revision 1.2 |
69 |
diff -u -r1.1 -r1.2 |
70 |
--- openssh-key-management-p2.xml 29 Sep 2005 20:59:13 -0000 1.1 |
71 |
+++ openssh-key-management-p2.xml 29 Sep 2005 21:51:19 -0000 1.2 |
72 |
@@ -1,5 +1,5 @@ |
73 |
<?xml version='1.0' encoding="UTF-8"?> |
74 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/openssh-key-management-p2.xml,v 1.1 2005/09/29 20:59:13 rane Exp $ --> |
75 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/openssh-key-management-p2.xml,v 1.2 2005/09/29 21:51:19 rane Exp $ --> |
76 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
77 |
|
78 |
<guide link="/doc/en/articles/openssh-key-management-p2.xml"> |
79 |
@@ -118,7 +118,7 @@ |
80 |
</p> |
81 |
|
82 |
<pre caption="Loading private RSA key to ssh-agent's cache"> |
83 |
-# <i>ssh-add ~/.ssh/identity</i> |
84 |
+$ <i>ssh-add ~/.ssh/identity</i> |
85 |
Need passphrase for /home/drobbins/.ssh/identity |
86 |
Enter passphrase for /home/drobbins/.ssh/identity |
87 |
(enter passphrase) |
88 |
|
89 |
|
90 |
|
91 |
1.2 +25 -23 xml/htdocs/doc/en/articles/openssh-key-management-p3.xml |
92 |
|
93 |
file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/openssh-key-management-p3.xml?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=gentoo |
94 |
plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/openssh-key-management-p3.xml?rev=1.2&content-type=text/plain&cvsroot=gentoo |
95 |
diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/articles/openssh-key-management-p3.xml.diff?r1=1.1&r2=1.2&cvsroot=gentoo |
96 |
|
97 |
Index: openssh-key-management-p3.xml |
98 |
=================================================================== |
99 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/openssh-key-management-p3.xml,v |
100 |
retrieving revision 1.1 |
101 |
retrieving revision 1.2 |
102 |
diff -u -r1.1 -r1.2 |
103 |
--- openssh-key-management-p3.xml 29 Sep 2005 20:59:13 -0000 1.1 |
104 |
+++ openssh-key-management-p3.xml 29 Sep 2005 21:51:19 -0000 1.2 |
105 |
@@ -1,5 +1,5 @@ |
106 |
<?xml version='1.0' encoding="UTF-8"?> |
107 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/openssh-key-management-p3.xml,v 1.1 2005/09/29 20:59:13 rane Exp $ --> |
108 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/articles/openssh-key-management-p3.xml,v 1.2 2005/09/29 21:51:19 rane Exp $ --> |
109 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
110 |
|
111 |
<guide link="/doc/en/articles/openssh-key-management-p3.xml"> |
112 |
@@ -498,21 +498,21 @@ |
113 |
does a "dry run" of ps uxw, throwing away any output. If the error code from |
114 |
this command is zero, we know that ps uxw works and we set the psopts value |
115 |
appropriately. However, if ps uxw returned a non-zero error code (indicating |
116 |
-that we need to use BSD-style options), we do a dry-run of ps -u `whoami` -f, |
117 |
-again throwing away all output. At this point, hopefully we've found either a |
118 |
-BSD or System V variant of ps that we can use. If we haven't, we print out an |
119 |
-error and exit. But it is very likely that one of the two ps commands worked, |
120 |
-in which case we execute the final line in the above code snippet, our ps |
121 |
-pipeline. By using the $psopts variable expansion immediately after ps, we're |
122 |
-able to pass the correct options to the ps command. |
123 |
+that we need to use BSD-style options), we do a dry-run of <c>ps -u `whoami` |
124 |
+-f</c>, again throwing away all output. At this point, hopefully we've found |
125 |
+either a BSD or System V variant of ps that we can use. If we haven't, we print |
126 |
+out an error and exit. But it is very likely that one of the two ps commands |
127 |
+worked, in which case we execute the final line in the above code snippet, our |
128 |
+ps pipeline. By using the $psopts variable expansion immediately after ps, |
129 |
+we're able to pass the correct options to the ps command. |
130 |
</p> |
131 |
|
132 |
<p> |
133 |
The ps pipeline also contains a true grep gem, which was kindly sent to me by |
134 |
-Hans Peter Verne. Notice that grep -v grep is no longer part of the pipeline; |
135 |
-instead, it has been removed and grep "ssh-agent" has been changed to grep |
136 |
-"[s]sh-agent". This single grep command ends up doing the same thing as grep |
137 |
-ssh-agent | grep -v grep; can you figure out why? |
138 |
+Hans Peter Verne. Notice that <c>grep -v grep</c> is no longer part of the |
139 |
+pipeline; instead, it has been removed and <c>grep "ssh-agent"</c> has been |
140 |
+changed to grep <c>"[s]sh-agent"</c>. This single grep command ends up doing |
141 |
+the same thing as <c>grep ssh-agent | grep -v grep</c>; can you figure out why? |
142 |
</p> |
143 |
|
144 |
<pre caption="Neat grep trick"> |
145 |
@@ -520,14 +520,14 @@ |
146 |
</pre> |
147 |
|
148 |
<p> |
149 |
-Stumped? If you've decided that a grep "ssh-agent" and grep "[s]sh-agent" |
150 |
-should match the exact same lines of text, you are correct. So why do they |
151 |
-generate different results when the output of ps is piped to them? Here's how |
152 |
-it works: when you use grep "[s]sh-agent", you change how the grep command |
153 |
-appears in the ps process list. By doing so, you prevent grep from matching |
154 |
-itself, since the [s]sh-agent string doesn't match the [s]sh-agent regular |
155 |
-expression. Isn't that brilliant? If you still don't get it, play around with |
156 |
-grep a bit more and you'll get it soon enough. |
157 |
+Stumped? If you've decided that a <c>grep "ssh-agent"</c> and <c>grep |
158 |
+"[s]sh-agent"</c> should match the exact same lines of text, you are correct. |
159 |
+So why do they generate different results when the output of ps is piped to |
160 |
+them? Here's how it works: when you use grep "[s]sh-agent", you change how the |
161 |
+grep command appears in the ps process list. By doing so, you prevent grep from |
162 |
+matching itself, since the [s]sh-agent string doesn't match the [s]sh-agent |
163 |
+regular expression. Isn't that brilliant? If you still don't get it, play |
164 |
+around with grep a bit more and you'll get it soon enough. |
165 |
</p> |
166 |
|
167 |
</body> |
168 |
@@ -555,8 +555,10 @@ |
169 |
<ul> |
170 |
<li> |
171 |
Read Daniel's other two articles in this series, <uri |
172 |
- link="/doc/en/articles/openssh-key-management-p1.xml">Part 1</uri> and |
173 |
- "<uri link="/doc/en/articles/openssh-key-management-p2.xml">Part 2</uri>. |
174 |
+ link="/doc/en/articles/openssh-key-management-p1.xml">OpenSSH key |
175 |
+ management, Part 1</uri> and <uri |
176 |
+ link="/doc/en/articles/openssh-key-management-p2.xml">OpenSSH key |
177 |
+ management, Part 2</uri> |
178 |
</li> |
179 |
<li> |
180 |
The most recent version of keychain is available on the <uri |
181 |
@@ -570,7 +572,7 @@ |
182 |
</li> |
183 |
<li> |
184 |
<uri link="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</uri> |
185 |
- is an excellent ssh client for Windows machines. |
186 |
+ is an excellent ssh client for Windows machines |
187 |
</li> |
188 |
<li> |
189 |
The book "SSH, The Secure Shell: The Definitive Guide" (O'Reilly & |
190 |
|
191 |
|
192 |
|
193 |
-- |
194 |
gentoo-doc-cvs@g.o mailing list |