X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f4ca9ad94a6bb006d1f3c7ba207837f1736d1247..668a799436295a17223096392898cf257d8dfc76:/apps/workbench/app/views/users/_virtual_machines.html.erb diff --git a/apps/workbench/app/views/users/_virtual_machines.html.erb b/apps/workbench/app/views/users/_virtual_machines.html.erb index fc54178dcc..026f016f8c 100644 --- a/apps/workbench/app/views/users/_virtual_machines.html.erb +++ b/apps/workbench/app/views/users/_virtual_machines.html.erb @@ -1,3 +1,7 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> +

@@ -11,7 +15,7 @@

For more information see <%= link_to raw('Arvados Docs → User Guide → VM access'), - "#{Rails.configuration.arvados_docsite}/user/getting_started/vm-login-with-webshell.html", + "#{Rails.configuration.Workbench.ArvadosDocsite}/user/getting_started/vm-login-with-webshell.html", target: "_blank"%>.

@@ -64,7 +68,7 @@ Host name Login name Command line - <% if Rails.configuration.shell_in_a_box_url %> + <% if Rails.configuration.Services.WebShell.ExternalURL != URI("") %> Web shell beta <% end %> @@ -81,11 +85,11 @@ <% if @my_vm_logins[vm[:uuid]] %> <% @my_vm_logins[vm[:uuid]].each do |login| %> - ssh <%= login %>@<%= vm[:hostname] %>.arvados + ssh <%= login %>@<%= vm[:hostname] %>.<%= current_uuid_prefix || 'xyzzy' %> <% end %> <% end %> - <% if Rails.configuration.shell_in_a_box_url %> + <% if Rails.configuration.Services.WebShell.ExternalURL != URI("") %> <% @my_vm_logins[vm[:uuid]].andand.each do |login| %> <%= 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 %> @@ -102,7 +106,7 @@

In order to access virtual machines using SSH, <%= link_to ssh_keys_user_path(current_user) do%> add an SSH key to your account<%end%> and add a section like this to your SSH configuration file ( ~/.ssh/config):

-
Host *.arvados
+    
Host *.<%= current_uuid_prefix || 'xyzzy' %>
       TCPKeepAlive yes
       ServerAliveInterval 60
       ProxyCommand ssh -p2222 turnout@switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h