Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion ssh2 identification file
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mikhail Kuperblum  
View profile  
 More options Feb 10 1999, 3:00 am
Newsgroups: comp.security.ssh
From: mikh...@panix.com (Mikhail Kuperblum)
Date: 1999/02/10
Subject: Re: ssh2 identification file
As per Shane Ramey (sh...@broadlink.com):

> I've read the man pages many times over, but I cannot find out how to use
> the identification and authorization files in ssh2 like the
> authorized_keys file in ssh1. I need to automate logging into a host,
> without prompting for a password. This is what I've tried right now:

> Local ~/.ssh2/identification:

> IdKey id_dsa_1024_a

> Remote ~/.ssh2/authorization:

> Key id_dsa_1024.pub

> Obviously this is wrong, but this is what I got from the man pages. Would
> anyone care to give me a hand?

authorization file (on remote system) has the following format:

Key luser1.pub
Key luser2.pub
etc.

Keep in mind that names (luser1.pub, etc.) are purely arbitrary. You can use
any name you want. What matters is that file with corresponding name exists
in .ssh2 on remote.

Lets consider an example. Say you have local user luser1 who wants to use
ssh2 to log into remote system as user ruser1.

1) Run ssh-keygen2 (as luser1 on local, as ruser1 on remote).
2) Create ~/.ssh2/identification on both systems with following line:

IdKey   id_dsa_1024_a

3) Create ~/.ssh2/authorization on remote with following line:

Key   luser1.pub

4) Create ~/.ssh2/luser1.pub in home directory of ruser1 (remote user)
with contents of ~/.ssh2/id_dsa_1024_a.pub of luser1 (local user).

5) On local, copy /etc/ssh2/ssh2_config to ~/.ssh2 of luser1 and
modify it to taste. For example, you can enable ssh2 to automatically
use certain Cipher depending on the remote host name.

6) Start sshd2 on remote. On local do "ssh2 -l ruser1 Remote_System_Name".
   That should do it.

Now, if another local user (luser2) wants to use ssh2 to log into remote
system as the same remote user ruser1, s/he would do (on local) all the
steps luser1 did. Then remote user (ruser1) would do steps 3) and 4)
all over again using name luser2.pub instead of luser1.pub. When all
is finished, ~/.ssh2/authorization of remote user (ruser1) should now have
the following two lines:

Key   luser1.pub
Key   luser2.pub

Plus, there should be ~/.ssh2/luser2.pub file on remote.

That is about it.

-mk


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.