Velocis Systems interview question

how telnet and ssh work?