Revision 7806f19d docs/collection_of_examples/server.rst
b/docs/collection_of_examples/server.rst | ||
---|---|---|
106 | 106 |
Server 141 is not in DELETED mode |
107 | 107 |
[kamaki]: |
108 | 108 |
|
109 |
Insect ssh keys to a debian server
|
|
109 |
Inject ssh keys to a debian server
|
|
110 | 110 |
---------------------------------- |
111 | 111 |
|
112 | 112 |
Assume that the servers build from the image `Debian Base Alpha` accept ssh |
... | ... | |
139 | 139 |
|
140 | 140 |
.. code-block:: console |
141 | 141 |
|
142 |
[kamaki]: 'NoPassword Server' 1 f1r57-1m4g3-1d -p /home/someuser/.ssh/id_rsa.pub,/root/.ssh/authorized_keys |
|
142 |
[kamaki]: server |
|
143 |
[server]: create 'NoPassword Server' 1 f1r57-1m4g3-1d -p /home/someuser/.ssh/id_rsa.pub,/root/.ssh/authorized_keys |
|
143 | 144 |
accessIPv4: |
144 | 145 |
accessIPv6: |
145 | 146 |
addresses: |
... | ... | |
158 | 159 |
metadata: |
159 | 160 |
os: debian |
160 | 161 |
users: root |
161 |
name: My First Server
|
|
162 |
name: No Password Server
|
|
162 | 163 |
progress: 0 |
163 | 164 |
security_groups: |
164 | 165 |
name: default |
... | ... | |
167 | 168 |
tenant_id: s0m3-u53r-1d |
168 | 169 |
updated: 2013-06-19T12:34:48.512867+00:00 |
169 | 170 |
user_id: s0m3-u53r-1d |
170 |
[kamaki]:
|
|
171 |
[server]:
|
|
171 | 172 |
|
172 | 173 |
When the VM is ready, get the VMs external IP from the web UI. Let's assume the |
173 | 174 |
IP is 123.456.78.90 . |
174 | 175 |
|
175 | 176 |
.. code-block:: console |
176 | 177 |
|
177 |
[kamaki]: /exit
|
|
178 |
[server]: /exit
|
|
178 | 179 |
$ ssh 123.456.78.90 |
179 |
Linux remote-vm-4241 2.6.32-5-amd64 #1 SMP Fri May 10 08:43:19 XXXX x86_64
|
|
180 |
Linux remote-vm-4241 2.6.32-5-amd64 #1 SMP XXXX x86_64 |
|
180 | 181 |
|
181 | 182 |
The programs included with the Debian GNU/Linux system are free software; |
182 | 183 |
the exact distribution terms for each program are described in the |
... | ... | |
186 | 187 |
permitted by applicable law. |
187 | 188 |
root@remote-vm-4241:~# ls -l .ssh/ |
188 | 189 |
total 4 |
189 |
-rw-r--r-- 1 root root 399 Jun 19 15:46 authorized_keys
|
|
190 |
-rw-r--r-- 1 root root 399 Jun 19 12:34 authorized_keys
|
|
190 | 191 |
root@remote-vm-4241:~# |
191 | 192 |
|
192 | 193 |
You can now log to your remote VM as root, without a password. Well done! |
Also available in: Unified diff