Re: Problem with SSH on Solaris 9
From: Charles Soto (charles@gtemail.net)
Date: 03/27/03
- Next message: Sundaram Ramasamy: "Re: Problem with SSH on Solaris 9"
- Previous message: Merten Schueler: "File Permissions not working in chroot environment? (SSH2 on Linux)"
- In reply to: christian: "Problem with SSH on Solaris 9"
- Next in thread: Richard E. Silverman: "Re: Problem with SSH on Solaris 9"
- Reply: Richard E. Silverman: "Re: Problem with SSH on Solaris 9"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: charles@gtemail.net (Charles Soto) Date: 27 Mar 2003 12:07:10 -0800
christianlcr@netcourrier.com (christian) wrote in message news:<82c0f15f.0303270751.21f353f5@posting.google.com>...
> Hi all,
>
> Running on Solaris 9 09/12
> On my own account, I want to create an authorized_keys file.
>
> Under my .ssh, I've got :
>
> id_dsa
> id_dsa.pub
> id_rsa
> id_rsa.pub
> known_hosts
>
> I copy the contain of my id_rsa.pub under the authorized_keys file.
> The fact is that, when I connected on my own account, the system
> always ask me the password.
> On SSH 2.2, I copy the contain of identity.pub under the
> authorized_keys file and It works.
>
> SO What's wrong on my configuration ????
> Thanks,
>
> Christian.
What good is having the key for that host/user combination in
authorized keys? You need the keys to the host you are connecting
FROM in that file.
Do this:
HOST1 (you run ssh on this one to connect to HOST2):
ssh-keygen -t dsa (use defaults- hit enter to leave blank key
passphrase)
ssh-keygen -t rsa ( " " " )
cd .ssh
cat id_dsa.pub id_rsa.pub host1.keys
scp host1.keys host2.yourdomain.net:host1.keys (need to enter your
password)
rm host1.keys
HOST2 (running sshd)
cd
mv host1.keys .ssh/authorized_keys
Now you will be able to log into HOST2 from HOST1 without a password.
This also assumes that "RSAAuthentication yes" exists in your
/etc/ssh/sshd_config (this is the default).
Charles
- Next message: Sundaram Ramasamy: "Re: Problem with SSH on Solaris 9"
- Previous message: Merten Schueler: "File Permissions not working in chroot environment? (SSH2 on Linux)"
- In reply to: christian: "Problem with SSH on Solaris 9"
- Next in thread: Richard E. Silverman: "Re: Problem with SSH on Solaris 9"
- Reply: Richard E. Silverman: "Re: Problem with SSH on Solaris 9"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|