SSH Keygen Program
b Start the client and use the RSA public key authentication according to the
encryption algorithm defined.
[S5500] ssh2 10.165.87.136 22 perfer_kex dh_group1
perfer_ctos_cipher des perfer_ctos_hmac md5 perfer_stoc_hmac md5
username: client003
Trying 10.165.87.136...
Press CTRL+K to abort
Connected to 10.165.87.136...
The Server is not autherncated.Do you continue access it?(Y/N):y
Do you want to save the server's public key?(Y/N):y
*********************************************************
*
All rights reserved (1997-2005)
*
Without the owner's prior written consent,
*no decompiling or reverse-engineering shall be allowed.*
*********************************************************
<S5500>
This procedure details how to create an SSH Keygen
OpenSSH (Linux/Unix)
■
OpenSSH requires several additional configuration steps to work properly with the
■
Switch 5500. This example will show how to create and modify an SSH key for
use on the Switch 5500.
1 Create the local-key on linux/unix using the command:
./ssh-keygen -b 1024 -f ssh_rsa_key -t rsa
This will create two files "ssh_rsa_key" which is the Private key, and
"ssh_rsa_key.pub" which is the Public key.
2 Copy the public key file ssh_rsa_key.pub to a windows pc from the linux/unix system.
Open it with Notepad, the file will look like this:
ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAIEA0Fa37P74lMp8STHs8enDBMDwTM1twvtnwanrFdY+ri
oHzXMnp8+S2c2jd30qzLV7t/cR25GeX/SwiIpcmlG107Fge20jVKqAGfnZkdEAChbJcbU7
OPK+av5Hq6e59Mgys1pDfhfwWNPrtxcM3BgoSo5Hj5EUtR2E4dbSS3jnR/E= localhost
3 Add these lines to the beginning of ssh_rsa_key.pub. Also, remove the old beginning
"ssh-rsa" and the old ending "localhost".
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20051118"
AAAAB3NzaC1yc2EAAAABIwAAAIEA0Fa37P74lMp8STHs8enDBMDwTM1twvtnwanrFdY+ri
oHzXMnp8+S2c2jd30qzLV7t/cR25GeX/SwiIpcmlG107Fge20jVKqAGfnZkdEAChbJcbU7
OPK+av5Hq6e59Mgys1pDfhfwWNPrtxcM3BgoSo5Hj5EUtR2E4dbSS3jnR/E=
<<<<<The key is the same as in step 2.
---- END SSH2 PUBLIC KEY ----
4 Using sshkey.exe convert the key into the 3Com hex format and copy it into your
switch.
5 Configure the switch and execute the command to log on
.
/ssh -2 -l usrname -i /home/user/ssh_rsa_key xx.xx.xx.xx (ip address of
switch)
SSH Terminal Services 209
*
*