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 → VM access'),
13 "#{Rails.configuration.arvados_docsite}/user/getting_started/vm-login-with-webshell.html",
17 <% if !@my_virtual_machines.any? %>
18 <div id="no_shell_access" class="no_shell_access">
19 <div class="alert alert-warning clearfix">
21 You do not have access to any virtual machines. Some
22 Arvados features require using the command line. You may
23 request access to a hosted virtual machine with the command
26 <div class="pull-right">
28 action: 'request_shell_access',
34 class: 'btn btn-xs btn-primary',
36 disable_with: "Sending request...",
37 on_error_hide: '.no_shell_access .alert-success',
38 on_error_show: '.no_shell_access .alert-danger',
39 on_error_write: '.no_shell_access .alert-danger .error-text',
40 on_success_hide: '.no_shell_access .alert-danger',
42 Send request for shell access
46 <div class="alert alert-success" style="display:none">
47 <p class="contain-align-left"><%# (see javascripts/request_shell_access.js) %></p>
49 <div class="alert alert-danger" style="display:none">
50 <p class="contain-align-left">Sorry, something went wrong. Please try again. (<span class="error-text"></span>)</p>
54 <script> localStorage.removeItem('request_shell_access'); </script>
55 <table class="table virtual-machines-table">
57 <col style="width: 25%" />
58 <col style="width: 25%" />
59 <col style="width: 50%" />
65 <th> Command line </th>
66 <% if Rails.configuration.shell_in_a_box_url %>
67 <th> Web shell <span class="label label-info">beta</span></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>
87 <% if Rails.configuration.shell_in_a_box_url %>
89 <% @my_vm_logins[vm[:uuid]].andand.each do |login| %>
90 <%= link_to webshell_virtual_machine_path(vm, login: login), title: "Open a terminal session in your browser", class: 'btn btn-xs btn-default', target: "_blank" do %>
91 Log in as <%= login %><br />
101 <p>Sample SSH Conig <i>~/.ssh/config:</i></p>
104 ServerAliveInterval 60
105 ProxyCommand ssh -p2222 turnout@switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h