How to get HostName from executable script in SSH config file?
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Track title: CC B Schuberts Piano Sonata No 16 D
--
Chapters
00:00 How To Get Hostname From Executable Script In Ssh Config File?
01:40 Accepted Answer Score 6
01:55 Thank you
--
Full question
https://superuser.com/questions/338303/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#ssh
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Track title: CC B Schuberts Piano Sonata No 16 D
--
Chapters
00:00 How To Get Hostname From Executable Script In Ssh Config File?
01:40 Accepted Answer Score 6
01:55 Thank you
--
Full question
https://superuser.com/questions/338303/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#ssh
#avk47
ACCEPTED ANSWER
Score 6
~/.ssh/config
:
Host cluster
ProxyCommand ~/bin/cluster-connect
~/bin/cluster-connect
:
#!/bin/bash
socat stdio tcp:$(get_host):22