Question: why line vty 0 15?
Answer: It is kind of range command, we are giving range of vty(virtual terminal line) from 0 to 15 (means all 16 lines). Again, “password” command to set the password to be used for authentication purpose. “login” command to set router to ask for authentication. This will also enable the Telnet access to this device.