ssh: fix remote port number parsing