Check port before connecting, not on client creation
Merge pull request #856 from jkrocil/fix-ssh-client-port-check

Check port before connecting, not on client creation