SSH key For Spider-Spider Duo

How can I create an ssh key to import into a Spider or Spider Duo?


First, use the procedure in this article to create an SSH key.

If you are having problems loading the generated key into a Spider or Spider Duo here are a few tips:

Many telnet clients and/or operating systems change the single Linux/Unix nl character (ASCII 0x0A) at the end of each line to a cr lf (0x0D 0x0A) sequence when you copy and paste.

Try pasting the key file you copied into a text file, then open the text file with a hex editor. There are many of them available on the web, for instance HxD for Windows:
http://mh-nexus.de/en/hxd/

Use the hex editor to delete any extraneous 0x0D characters at the ends of lines and save the file, then copy and paste out of that file.

For instance, see the attached a screen shot of an id_dsa.pub file copied and pasted from a telnet session to a Linux host to a text file on a Windows PC. Note that the EOL sequence is 0D 0A.

Image

Do a global search and replace to change all 0D 0A sequences to 0A , then save the file:

 Image

You should now be able to copy and paste from that file to the Spider Duo.

Another option is to use ftp, scp or some other method to do a binary transfer of the original file to the host you're going to copy and paste from.

If loading the key from the web interface fails, try importing the key from the command line using the 'set sshkey import copypaste' command:

[sysadmin@172.18.11.18]> set sshkey import copypaste
Please paste key; enter '.' (period) on a blank line to terminate entry:
ssh-dss AAAAB3NzaC1kc3MAAACBAMY80mL8KvVstUskPhemtfqTOc3DfU5V7gM2aocLcdt4siY6KW+r
/tPkk3DPZy6D7r8Cxhg5b+DfqkuubbEnPrrkhIoNyr5gN53hcsF4GI4puG3wIjmSgZpyraXVJQgt8
TmDhZ5KLachtKoj5HZ/cC2FKt6VaB9Cn6Oxd1rptAAAAFQDElHUN2v94IZvLGeohqFJ4NOxoMQAAAIBo
D49A/p4FI6nrJ7fh/mb2NgjSMoB4k9SdxEAF4DSl71Y1HEw7el/EhPpMYAmgHuRQO/WiqUo6RV0sq
Hh94SnXbdq613heO0piRLF1RmgjWh798onvNg8vo6G4oWP6NFGKEfA+fkawafSFUFjOjfr5U+9XJ
gan+80+lVAAAAIABd/n8pv7PVxDNFBTjOD40iwKplpUErIHkqIBK9MMj7W50Ck42t32BfQ8mVTCagQ6/
o/SadDXTsAv6CfHXyPsVAKZjidM0PVsW8O7EM+NKqCQzlTBTGf1HkwLTCjiAk3y/t0cTQCO+EtT
Dmr47BSJxE3eYdSXCcj//gmUEw== gary@gary-OptiPlex
.
SSH key import complete.
[sysadmin@172.18.11.18]>

This should work if your key file declares the user. The file above does this with '== gary@gary-OptiPlex' at the end of the file.



[Originally Published On: 02/07/2014 11:15 AM]