Re: [FC5] how to use public key login for ssh?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


thanks so much for your friends help.

i got it solved!!  this is exactly bcos of the permission setting:

it works correctly after I did the following:
$ chmod 700 ~/.ssh
$ chmod 600 ~/.ssh/authorized_keys

thanks for all of you.


On 2006-07-07 12:39:35 +0800, Todd Zullinger <[email protected]> said:

Hash: SHA1

Hi Man-Chi,

sorry that I am a newbie to fedora FC5, I used to be in Solaris
No need to be sorry. :)

i could not configure correctly for public key ssh login as I used
to do in Solaris.

my step:

1) cat my public key and put in my $fedora_user/.ssh/authorized_keys
What are the permissions on ~/.ssh and on ~/.ssh/authorized_keys?
OpenSSH is particular about them and won't use the key if the
permissions on the file or directory are too lax.  I set ~/.ssh to 700
and authorized_keys to 600 and ssh is happy.

2) configure fedora's /etc/ssh/sshd_config, uncomment the following
2 lines

PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys
It doesn't hurt, but you don't need to do this because the values
specified in sshd_config are the defaults.

However, ssh login still prompts me for password.....
What is the prompt?  It may be a prompt for the password of your key,
unless the key has no password (which is bad) or you are using the
ssh-agent and have already added your key to the agent.

- -- Todd        OpenPGP -> KeyID: 0xD654075A | URL:
If a government were put in charge of the Sahara Desert, within five
years they'd have a shortage of sand.
    -- Dr. Milton Friedman

Version: GnuPG v1.4.4 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux