|
Useful Computer Resources
by swanberg |
How to generate keypairs to use with the Commercial ssh product and OpenSSH.First, install the SSH client from www.ssh.com (free for educational use). See Using the Commercial SSH Secure Shell application for more info.
Once SSH is installed, confirm that the server has the line:
In the SSH client, choose the menu Edit -> Settings
Here's where the complication comes in. The commercial SSH application and OpenSSH use different
key formats and locations. So, in the dialog that comes up, change the destination folder from .ssh2
to .ssh. This file must now be edited to match the OpenSSH format. The (name).pub key will look something like this:
---- BEGIN SSH2 PUBLIC KEY ---- Comment: "I typed comments here [1024-bit dsa, swanberg@(client), Thu Jan 23 2003 1\ 7:08:53]" AAAAB3NzaC1kc3MAAACBAItGfoWMfqwY3Gpt2x9Ya5zjw5DjTdRd4kpqLgCzUHN2FNZ/Zd (snip) pF012zTt3GLvbAZxYA== ---- END SSH2 PUBLIC KEY ----In the 'authorized_keys2' file, replace everything before the actual key with 'ssh-dss ' and then join the rest of the key onto one line. So the final file will look something like this: ssh-dss AAAAB3NzaC1kc3MAAACBAItGfoWMfqwY3Gpt2x9Ya5zjw5D jTdRd4kpqLgCzUHN2FNZ/Zdy(snip)pF012zTt3GLvbAZxYA==(Those lines should wrap, depending on your terminal. If you're using vi, use the shift-J command to join the lines but make sure you don't leave spaces betweened the joined lines).
Once that is edited, the SSH client should use the pubkey authentication. And these will be used for the command-line tools scp2.exe, sftp2.exe and ssh2.exe, found in the SSH Secure Shell directory on the client.
i.e. Well, this file is a bet messy, but I just threw it together. Any questions, please contact me.
Copyright © 2002 by the Regents of the University of Minnesota Author: Karen Swanberg, Department of Geology and Geophysics, University of Minnesota. This presentation, as well as Information in this presentation, may be used in whole or in part as long as the original source and author is credited on the displayed page (I.e. not in the metadata of a webpage) and a link is made back to the original.
|