SSH connection fixes