
s8zni (s8zni) asked a question.
I'm following this doc: https://help.okta.com/en/prod/Content/Topics/Adv_Server_Access/docs/setup/ssh.htm
Basically I want to be able to setup SFT on Windows such that I can run 'ssh hostname' and it will launch 'sft ssh hostname' (so I can integrate with VS Code for remote development: https://code.visualstudio.com/docs/remote/ssh )
If I have no ~/.ssh/config file and run sft ssh hostname everything works (I get the Okta prompt and can ssh to the host)
If I follow the Okta doc and run sft ssh-config >> ~/.ssh/config
Then I run ssh hostname, I get:
C:\\Users\\bd/.ssh/config: line 1: Bad configuration option: \377\376*
C:\\Users\\bd/.ssh/config: terminating, 1 bad configuration options
I'm using Win32-OpenSSH V8.6.0.0.p1-Beta from https://github.com/PowerShell/Win32-OpenSSH/releases, which is the current release

Thank you for contacting Okta on this.
The command block that you need to add to ~/.ssh/config should look like the following:
Match exec "C:\Users\[USER]\AppData\Local\Apps\ScaleFT\bin\sft.exe resolve %h"
ProxyCommand C:\Users\[USER]\AppData\Local\Apps\ScaleFT\bin\sft.exe proxycommand %h
UserKnownHostsFile C:\Users\[USER]\AppData\Local\ScaleFT\proxycommand_known_hosts
Please note that the path itself of these command blocks might change depending on the location of those exe files.
Try running the command and add the block manually. If that still doesn't work for you, please go ahead and open a Support case so we can better troubleshoot this.
I appreciate your feedback. I still get the attached error
Do not run sft ssh-config >> ~/.ssh/config
Instead, you should use some text editor to manually add to the ssh config file the following lines:
Match exec "sft resolve -q %h"
ProxyCommand "C:\Users\[YourUsername]\AppData\Local\Apps\ScaleFT\bin\sft.exe proxycommand %h"
UserKnownHostsFile C:\Users\[YourUsername]\AppData\Local\ScaleFT\proxycommand_known_hosts
The problem is that we do not have a command line text editor available in Windows, so you have to use some GUI text editor like Notepad, or if you already install git on Windows, you can use nano.exe or vim.exe bundled with git for Windows, for example in Windows Power Shell (notice the & at the beginning):
& 'C:\Program Files\Git\usr\bin\nano.exe' .\.ssh\config
It can let you go to the server, but I do not know how to make it works with vscode and its Remote SSH plugin. If you can do that, please share.