
nqi2x (nqi2x) asked a question.
I am trying to run the scaleFT client on Ubuntu 20.04 and I am running into some issues. I am able to enroll into my team and view servers from the client fine, but when I try to connect to a server I am getting a GO error that I am not sure how to debug.
$ sft rdp xx.xxx.x.xxx
panic: runtime error: index out of range [1] with length 1
goroutine 1 [running]:
github.com/ScaleFT/device-tools/sshutils/conf.(*SystemMatchBlockChecker).CheckMatchBlock(_, {_, _}, _, {0x0, 0x0, 0x0, 0x0, 0x0, {0x0, ...}, ...})
github.com/ScaleFT/device-tools/sshutils/conf/matchblock.go:83 +0x5e5
github.com/ScaleFT/device-tools/sshutils/conf.Config.GetConfigForHostWithMatchBlockChecker({0xc00015c4b0, 0x9, 0xc000340230}, {0xc00012a580, 0x19}, {0x5636f8811cb8, 0xc000110d80})
github.com/ScaleFT/device-tools/sshutils/conf/ssh_config.go:128 +0x22b
github.com/ScaleFT/device-tools/sshutils/conf.Config.GetConfigForHostWithDbg({0xc00015c4b0, 0x9, 0x9}, {0xc00012a580, 0xc00064b2f0}, {0x5636f8803fe0, 0xc000340af0})
github.com/ScaleFT/device-tools/sshutils/conf/ssh_config.go:89 +0x11e
github.com/ScaleFT/device-tools/localft/sshclient.GetConfigForHost({0x5636f881bca0, 0xc0006472f0}, {0xc00012a580, 0x19}, {0xc00015c4b0, 0x9, 0x9})
github.com/ScaleFT/device-tools/localft/sshclient/sshclient.go:539 +0x295
github.com/ScaleFT/device-tools/localft/sshto.(*SFTSSHClient).getLastHopGoClient(0xc000513170, {0x5636f881bca0, 0xc0006472f0}, 0xc00012a580)
github.com/ScaleFT/device-tools/localft/sshto/internal.go:56 +0xa6
github.com/ScaleFT/device-tools/localft/sshto.(*SFTSSHClient).GetInternalGoClientWithResolved(0xc000513170, {0x5636f881bca0, 0xc0006472f0}, 0x0)
github.com/ScaleFT/device-tools/localft/sshto/sshto.go:970 +0x90
github.com/ScaleFT/device-tools/localft/sshto.EstablishSSHPortForwardingV2({0x5636f881bbf8, 0xc000284440}, 0x0, {0xc0002a44e0, 0x11}, 0x4)
github.com/ScaleFT/device-tools/localft/sshto/portforward.go:29 +0x12b
github.com/ScaleFT/device-tools/localft/rdpto.(*defaultClientLauncher).runResolved(0xc0001a1800, {0x5636f881bca0, 0xc0005354a0})
github.com/ScaleFT/device-tools/localft/rdpto/rdpto.go:226 +0xc08
github.com/ScaleFT/device-tools/localft/rdpto.(*defaultClientLauncher).Launch(0xc0001a1800, {0x5636f881bca0, 0xc0005354a0})
github.com/ScaleFT/device-tools/localft/rdpto/rdpto.go:154 +0x47c
github.com/ScaleFT/device-tools/sft.rdpFn({0x5636f881bca0, 0xc0005354a0}, 0xc0001ecc60)
github.com/ScaleFT/device-tools/sft/rdp.go:55 +0x31a
github.com/ScaleFT/device-tools/sft.cliAction.func1(0xc0001ecc60)
github.com/ScaleFT/device-tools/sft/sft.go:156 +0x1b2
github.com/urfave/cli.HandleAction({0x5636f8699840, 0xc0004daea0}, 0x3)
github.com/urfave/cli@v1.22.4/app.go:526 +0xa8
github.com/urfave/cli.Command.Run({{0x5636f81f48e0, 0x3}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x5636f81fee24, 0xe}, {0x0, ...}, ...}, ...)
github.com/urfave/cli@v1.22.4/command.go:174 +0x652
github.com/urfave/cli.(*App).Run(0xc00043dc00, {0xc000032180, 0x3, 0x3})
github.com/urfave/cli@v1.22.4/app.go:279 +0x80c
github.com/ScaleFT/device-tools/sft.Run(...)
github.com/ScaleFT/device-tools/sft/sft.go:34
main.main()

Hello @nqi2x (nqi2x) Thank you for reacting out to our Community!
Was this tested with RDP sessions for ASA? If not you can use this command to set it up "sudo apt install freerdp2-x11 freerdp2-shadow-x11"
After that you can test it again and see if it works.
Please also see this doc:
https://help.okta.com/asa/en-us/Content/Topics/Adv_Server_Access/docs/rdp.htm
Hope this helps.
Thanks for the response. I actually tracked it down to an issue in my ssh config that was conflicting with our bastion host.
Thanks!