Friday, January 4, 2013

Using ssh-keys from Openssh to Tectiassh and vice-versa



How to find the server is Openssh or Tectiassh
> ssh -V

Configuration starts from here

1. On SERVERA with Openssh:
 1. ssh-keygen -t rsa
 2. cd .ssh
 3. It creates two files id_rsa and id_rsa.pub
 4. Create a file authorized_keys and copy/paste id_rsa.pub into it.
 5. ssh-keygen -e -f id_rsa.pub >Openssh_to_Tectiassh

2. On SERVERB with Tectiassh: 
 1. ssh-keygen -t rsa
 2. cd .ssh2
 3. It creates two files id_rsa_2048_a and id_rsa_2048_a.pub  in .ssh2
 4.
cat > identification <<!
Idkey id_rsa_2048_a
!
 5. Copy the file Openssh_to_Tectiassh from Openssh server to the .ssh2 directory
 6.
cat > authorization <<!
Key id_rsa_2048_a.pub
Key Openssh_to_Tectiassh
!
3. On SERVERA with Openssh:                                                                                                             
 1. cd .ssh
 2. Copy the file id_rsa_2048_a.pub from Tectiassh server to the .ssh directory
 3. ssh-keygen -i -f id_rsa_2048_a.pub >>authorized_keys

Now we have .ssh2 directory in Tectiassh server and .ssh directory in Openssh sever.
so copy the .ssh2 directory in Tectiassh server to Openssh sever and copy the .ssh directory in Openssh sever to Tectiassh server
and everytime make sure u have these two directories in all the servers in your user home.

No comments:

Post a Comment