Parses [user@]host[:port].
[user@]host[:port]
Validated rather than passed through, because the result becomes argv for ssh. A host that could contain a leading - would be read by ssh as a flag, and one that could contain a space would need a shell to get there at all.
ssh
-
Optional
Parses
[user@]host[:port].Validated rather than passed through, because the result becomes argv for
ssh. A host that could contain a leading-would be read by ssh as a flag, and one that could contain a space would need a shell to get there at all.