f8eec71666d08b1f17eb29a5a06527a63812e8e6
[arvados.git] / apps / workbench / app / views / users / _manage_ssh_keys.html.erb
1 <div>
2 <h4>Add / Delete SSH Keys</h4>
3   <table class="table virtual-machines-table">
4     <colgroup>
5       <col style="width: 95%" />
6       <col style="width: 5%" />
7     </colgroup>
8     <tbody>
9       <% @my_ssh_keys.andand.each do |key| %>
10         <tr>
11           <td>
12             <%= key[:uuid] %>
13           </td>
14           <td>
15     <%= link_to(authorized_key_path(id: key[:uuid]), method: 'delete', class: 'btn btn-sm', data: {confirm: "Really delete key"}) do %>
16       <i class="fa fa-fw fa-trash-o"></i>
17     <% end %>
18           </td>
19         </tr>
20       <% end %>
21     </tbody>
22   </table>
23 </div>
24
25 <hr>
26
27 <div>
28 <h4>Setting up SSH keys</h4>
29 <p>
30 Sample <code>~/.ssh/config</code>:
31 </p>
32
33 <pre>
34 Host *.arvados
35   ProxyCommand ssh -p2222 turnout@switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h
36 <% if @my_vm_logins.andand.first %>
37   User <%= @my_vm_logins[@my_vm_logins.andand.keys.first].andand.first %>
38 <% end %>
39 </pre>
40
41 <p>
42 Sample login command:
43 </p>
44
45 <pre>
46 ssh <%= @my_virtual_machines.first.andand.hostname.andand.sub('.'+current_api_host,'') or 'vm-hostname' %>.arvados
47 </pre>
48
49 <p>
50   See also:
51   <%= link_to raw('Arvados Docs &rarr; User Guide &rarr; SSH access'),
52   "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
53   target: "_blank"%>.
54 </p>
55 </div>