Add 'apps/arv-web/' from commit 'f9732ad8460d013c2f28363655d0d1b91894dca5'
[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   <% if !@my_virtual_machines.any? %>
9     You do not seem to have access to any virtual machines. If you would like to request access, please contact your system admin.
10   <% else %>
11     <table class="table virtual-machines-table">
12       <colgroup>
13         <col style="width: 25%" />
14         <col style="width: 25%" />
15         <col style="width: 50%" />
16       </colgroup>
17       <thead>
18         <tr>
19           <th> Host name </th>
20           <th> Login name </th>
21           <th> Command line </th>
22         </tr>
23       </thead>
24       <tbody>
25         <% @my_virtual_machines.andand.each do |vm| %>
26           <tr>
27             <td style="word-break:break-all;">
28               <%= vm[:hostname] %>
29             </td>
30             <td style="word-break:break-all;">
31               <%= @my_vm_logins[vm[:uuid]].andand.compact.andand.join(", ") %>
32             </td>
33             <td style="word-break:break-all;">
34               <% if @my_vm_logins[vm[:uuid]] %>
35                 <% @my_vm_logins[vm[:uuid]].each do |login| %>
36                   <code>ssh&nbsp;<%= login %>@<%= vm[:hostname] %>.arvados</code>
37                 <% end %>
38               <% end %>
39             </td>
40           </tr>
41         <% end %>
42       </tbody>
43     </table>
44
45     <p><i>~/.ssh/config:</i></p>
46     <pre>Host *.arvados
47       TCPKeepAlive yes
48       ServerAliveInterval 60
49       ProxyCommand ssh -p2222 turnout@switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h
50     </pre>
51   <% end %>
52 </div>