1 <div class="panel panel-default">
2 <div class="panel-heading">
3 <h4 class="panel-title">
4 <a data-parent="#arv-adv-accordion" href="#manage_virtual_machines">
10 <div id="manage_virtual_machines" class="panel-body">
12 For more information see <%= link_to raw('Arvados Docs → User Guide → SSH access'),
13 "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html",
15 <% if @my_virtual_machines.any? or true %>
16 A sample <code>~/.ssh/config</code> entry is provided below.
20 <% if !@my_virtual_machines.any? %>
21 <div id="no_shell_access" class="no_shell_access">
22 <div class="alert alert-warning clearfix">
24 You do not have access to any virtual machines. Some
25 Arvados features require using the command line. You may
26 request access to a hosted virtual machine with the command
29 <div class="pull-right">
31 action: 'request_shell_access',
37 class: 'btn btn-xs btn-primary',
39 disable_with: "Sending request...",
40 on_error_hide: '.no_shell_access .alert-success',
41 on_error_show: '.no_shell_access .alert-danger',
42 on_error_write: '.no_shell_access .alert-danger .error-text',
43 on_success_hide: '.no_shell_access .alert-danger',
45 Send request for shell access
49 <div class="alert alert-success" style="display:none">
50 <p class="contain-align-left"><%# (see javascripts/request_shell_access.js) %></p>
52 <div class="alert alert-danger" style="display:none">
53 <p class="contain-align-left">Sorry, something went wrong. Please try again. (<span class="error-text"></span>)</p>
57 <script> localStorage.removeItem('request_shell_access'); </script>
58 <table class="table virtual-machines-table">
60 <col style="width: 25%" />
61 <col style="width: 25%" />
62 <col style="width: 50%" />
68 <th> Command line </th>
72 <% @my_virtual_machines.andand.each do |vm| %>
74 <td style="word-break:break-all;">
77 <td style="word-break:break-all;">
78 <%= @my_vm_logins[vm[:uuid]].andand.compact.andand.join(", ") %>
80 <td style="word-break:break-all;">
81 <% if @my_vm_logins[vm[:uuid]] %>
82 <% @my_vm_logins[vm[:uuid]].each do |login| %>
83 <code>ssh <%= login %>@<%= vm[:hostname] %>.arvados</code>
92 <p><i>~/.ssh/config:</i></p>
95 ServerAliveInterval 60
96 ProxyCommand ssh -p2222 turnout@switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h