%# Copyright (C) The Arvados Authors. All rights reserved. SPDX-License-Identifier: AGPL-3.0 %>
Sample ~/.ssh/config
section:
Host *.arvados ProxyCommand ssh -p2222 turnout@switchyard.<%= current_api_host || 'xyzzy.arvadosapi.com' %> -x -a $SSH_PROXY_FLAGS %h <% if @objects.first.andand.current_user_logins.andand.first %> User <%= @objects.first.current_user_logins.andand.first %> <% end %>
Sample login command:
ssh <%= @objects.first.andand.hostname.andand.sub('.'+current_api_host,'') or 'vm-hostname' %>.arvados
See also: <%= link_to raw('Arvados Docs → User Guide → SSH access'), "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html", target: "_blank"%>.