News for hackers. Stuff that matters.
Re:SSH Proxy Commands that use `sed` by 1amzave on Friday March 27, 2015 @12:36PM (#9277328)
Heck, for a string manipulation that simple you don't even need `sed`, you can just use the shell -- modulo potential escaping errors (I haven't actually tested this), something like this should do the trick:

    ProxyCommand ssh -aY bastion 'nc -w 900 `x="%h"; echo ${x%%.bast}` %p'

There are no comments on this comment yet.