Skip to content

Instantly share code, notes, and snippets.

@rverrips
Created November 11, 2013 12:29
Show Gist options
  • Save rverrips/7412492 to your computer and use it in GitHub Desktop.
Save rverrips/7412492 to your computer and use it in GitHub Desktop.
HP Script to enable ssh and disable telnet
### put the switch ip address in lines 3 and 17 ###
### put the username in to lines 4 and 18 and the password into lines 5 and 19 ###
telnet 10.1.0.11
admin
### put your password here ###
configure terminal
crypto key generate ssh rsa
ip ssh
ip ssh filetransfer
aaa authentication ssh login local none
aaa authentication ssh enable local none
exit
write mem
exit
exit
y
ssh 10.1.0.11
admin
### put your password here ###configure terminal
no telnet-server
exit
write mem
exit
exit
y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment