---DOC to DOC07 Key Conversion ---


There are distinct setups for SSH2 environments and OpenSSH environments and sometimes the keys are converted from one to the other. Also, if the key already exists, we redeploy them.

The DOC server contains the public key files which should be copied to DOC07 as is and if the DOC system was
using the Tectia SSH2 / Solaris OpenSSH server, the keys can / should be converted using the following commands:



-- find SSH version
ssh -V

-- for SSH2
01 Connect as the user on the server that needs to connect to DOC07.
02 Find the key that is currently being used.
03 Note the name of the .ssh2 pub key
	for example: ascban -- appworx_chemung.pub

On DOC7 as the user to be connected to...
find the path to the ssh2 ssh!
cd .ssh2
ssh-keygen -i -f  appworx_chemung.pub > ../.ssh/appworx_chemung.pub
cd ../.ssh
cp -p authorized_keys 00.authorized_key-DATE
cat appworx_chemung.pub >> authorized_keys
/usr/local/ssh2/bin/ssh ascban@doc07.cc.binghamton.edu



-- If the server to connect to DOC7 s using OPEN_ssh
On that server as the user to connect to DOC07.
cd .ssh 
sftp username@doc07.cc.binghamton.edu
sftp> cd .ssh
sftp> put PUBKEYNAME.pub

this may need to be put in authorized keys





Valid HTML 4.0 Transitional