Example to enable SSH.
configure terminal
ip domain name network.lan
crypto key generate rsa general-keys modulus 2048
ip ssh version 2
end
configure terminal
line vty 0 15
login local
transport input telnet ssh
end
configure terminal
service password-encryption
enable password 0 PassWord
username UserName privilege 15 password 0 PassWord
end
wr