cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Proper steps to Enable SSH on 21.1.3.7 or higher XOS

Proper steps to Enable SSH on 21.1.3.7 or higher XOS

Arjumand_Qazi
New Contributor II
was trying to enable SSH on XOS device having 21.1.3.7 image
did the following steps

ena ssh <-- OK

generated a private key.. <-- OK

i want to have a SSH session via putty or teraterm <-- connection refused
i want to enable https <-- will not allow

what are the proper steps to generate the required keys and certificate and import them so that this freakin SSL/SSH related thing will start to work

can someone please guide to correct steps, like importing PEM or copy from PEM file and pasting it in the console, how can i get a SSL certificate,
is SSHD2 required also for putty SSH connection ?

11 REPLIES 11

thanks Wong,
so its should be the client side to provide me with proper digital certificate in which is generally a PEM file ?
i see no command in XOS which are generate that certificate which will have that proper key.
or is there a way to generate a free certificate ?

that is not a proper PEM format key.

Refer here for the correct format.

http://how2ssl.com/articles/working_with_pem_files/

thats what happening from the morning. i dont know what content is to be pasted here..i copied from SSH2 private-key which is a long Hex string..
it will not accept and you can see the Error

X460G2-24t-G4.7 # conf ssl privkey pregenerated ?
Execute the command
X460G2-24t-G4.7 # conf ssl privkey pregenerated
Paste private key in Privacy Enhanced Mail (PEM) format.
Enter blank line for end of private key.
2d:2d:2d:2d:2d:42:45:47:49:4e:20:52:53:41:20:50:52:49:56:41:54:45:20:4b:45:59:2

Error: Error validating private key
X460G2-24t-G4.8 #

GTM-P2G8KFN