Add tty fix for ssh