Created
November 11, 2013 12:29
-
-
Save rverrips/7412492 to your computer and use it in GitHub Desktop.
HP Script to enable ssh and disable telnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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