Merge branch '3193-manage-account' of git.curoverse.com:arvados into 3193-manage...
[arvados.git] / apps / workbench / app / views / users / _manage_virtual_machines.html.erb
1 <div>
2   <p>
3     For more information see <%= link_to raw('Arvados Docs &rarr; User Guide &rarr; SSH access'),
4   "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
5   target: "_blank"%>.  A sample <i>~/.ssh/config</i> entry is provided below.
6   </p>
7
8   <table class="table virtual-machines-table">
9     <colgroup>
10       <col style="width: 25%" />
11       <col style="width: 25%" />
12       <col style="width: 50%" />
13     </colgroup>
14     <thead>
15       <tr>
16         <th> Host name </th>
17         <th> Login name </th>
18         <th> Command line </th>
19       </tr>
20     </thead>
21     <tbody>
22       <% @my_virtual_machines.andand.each do |vm| %>
23         <tr>
24           <td style="word-break:break-all;">
25             <%= vm[:hostname] %>
26           </td>
27           <td style="word-break:break-all;">
28             <%= @my_vm_logins[vm[:uuid]].andand.compact.andand.join(", ") %>
29           </td>
30           <td style="word-break:break-all;">
31             <% if @my_vm_logins[vm[:uuid]] %>
32               <% @my_vm_logins[vm[:uuid]].each do |login| %>
33                 <code>ssh&nbsp;<%= login %>@<%= vm[:hostname] %>.arvados</code>
34               <% end %>
35             <% end %>
36           </td>
37         </tr>
38       <% end %>
39     </tbody>
40   </table>
41
42 <p><i>~/.ssh/config:</i></p>
43 <pre>Host *.arvados
44   ProxyCommand ssh -p2222 turnout@switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h
45 </pre>
46
47 </div>