Re: ssh without password does not work
From: Vahid (NOSPAM-sunman_at_ureach.com)
Date: 11/30/03
- Next message: Siggi: "Signing a SSH-Key with a CA Certificate ????"
- Previous message: Nicholas C. Weaver: "My Agent Wishlist"
- In reply to: tom: "ssh without password does not work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 30 Nov 2003 01:30:40 GMT
tom wrote:
> i got the following problem:
>
> i have a network with redhat 8.0 on about 7 machines and i need to run
> ssh without password inside this network. in this network /home
> directory is mounted from one server via nfs.
>
> what i tried is this (with 2 machines(i call them
> localhost,remotehost)):
>
> on localhost:
> cd .ssh
> ssh-keygen -t rsa
> ssh-keygen -t dsa
> scp *.pub user@remotehost:~/
> ssh remotehost -l user
> cat id_rsa.pub >> .ssh/authorized_keys
> cat id_dsa.pub >> .ssh/authorized_keys
> rm id_rsa.pub id_dsa.pub
> exit
>
> this did not work so i went on looking for hints in howtos and
> newsgroups and found:
>
> If above is not successful, check sshd configuration:
> vi /etc/ssh/sshd_config (on the Linux box)
> RSAAuthentication yes
> PubkeyAuthentication yes
>
> what i did on both hosts. but after restarting sshd (killall -HUP sshd
> und /etc/init.d/sshd restart), i had the same problem:
> could not connect without password.
>
> can anyone tell me what is going wrong here?
> thanx
> tom ...
>
> and here the configfiles in /etc/ssh/
> =====================================
>
snip 8<
Have you checked the permission on $HOME and .ssh directories, they must
be 755 for home and 750 or 700 for .ssh. Also directories can not be
setgid. I never do cat id_rsa.pub >> .ssh/authorized_keys.
Take a look at this: http://bumblebee.lcs.mit.edu/ssh2/
Just follow what applies to you.
- Vahid.
- Next message: Siggi: "Signing a SSH-Key with a CA Certificate ????"
- Previous message: Nicholas C. Weaver: "My Agent Wishlist"
- In reply to: tom: "ssh without password does not work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|