<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007C3JtLCAVOkta Identity EngineAdvanced Server AccessAnswered2024-03-25T16:51:57.000Z2021-09-17T14:36:43.000Z2021-09-17T20:33:03.000Z
How to set up proxycommand

Is there any documentation on setting up to use the proxycommand in Okta? The documentation I've found just says to set up the "bastion" and then add the output from sft ssh-config to the .ssh/config file. That alone does not seem to be sending traffic via the "bastion".

 

https://help.okta.com/asa/en-us/Content/Topics/Adv_Server_Access/docs/setup/ssh.htm

 

One line in the above suggests adding a lines like "Bastion: fqdn.server.net" to the sftd.yaml configuration file on the target server. However, I am unable to locate that file on the server.

 

I am very familiar with setting up jump hosts and bastion hosts using the common features of openssh such as JumpHost and ControlMaster. However, okta seems to have dropped these out of its implementation of ssh so I have to figure out how to get around the loss.


  • StephenC.92115 (Customer)

    I just hard coded the --via command:

     

    Host *

     AddressFamily        inet

      ForwardAgent         yes

      ForwardX11           no

      ServerAliveInterval  15

      ConnectTimeout       10

      ControlMaster         auto

      ControlPath           ~/.ssh/master-%r@%h:%p

      CanonicalizeHostname always

      CanonicalDomains lereta.net leretang.com

     

    Match exec "/usr/bin/sft resolve -q %h"

     ProxyCommand "/usr/bin/sft" proxycommand --via bastet.lereta.net %h

      UserKnownHostsFile ~/.local/share/ScaleFT/proxycommand_known_hosts

     

    Not very elegant but it works -- mostly.

     

    Expand Post
This question is closed.
Loading
How to set up proxycommand