1 |
On Wednesday 30 May 2007 21:42, Mauro Faccenda wrote: |
2 |
> On Wednesday 30 May 2007 16:57, Mick wrote: |
3 |
|
4 |
> > I find it confusing. First of all I do not have a id_rsa. |
5 |
> |
6 |
> it tries the default keys (id_rsa or id_dsa), if exists. |
7 |
|
8 |
id_rsa does not exist in my local /home/michael/.ssh/ only id_dsa is there and |
9 |
the public key that I have saved in /home/mic/.ssh/authorized_keys on the |
10 |
server is my corresponding id_dsa.pub. |
11 |
|
12 |
> if you don't want |
13 |
> it to try it, you can use the -i parameter to ssh pointing to your private |
14 |
> key (ssh -i ~/.ssh/id_dsa <user>@<server>), |
15 |
|
16 |
Trying with the -i option also fails: |
17 |
====================================== |
18 |
$ ssh -v -p 22 -i /home/michael/.ssh/id_dsa mick@<blah-blah> |
19 |
[snip] |
20 |
debug1: Found key in /home/michael/.ssh/known_hosts:18 |
21 |
debug1: ssh_rsa_verify: signature correct |
22 |
debug1: Enabling compression at level 6. |
23 |
debug1: SSH2_MSG_NEWKEYS sent |
24 |
debug1: expecting SSH2_MSG_NEWKEYS |
25 |
debug1: SSH2_MSG_NEWKEYS received |
26 |
debug1: SSH2_MSG_SERVICE_REQUEST sent |
27 |
debug1: SSH2_MSG_SERVICE_ACCEPT received |
28 |
debug1: Authentications that can continue: publickey,gssapi-with-mic,password |
29 |
debug1: Next authentication method: publickey |
30 |
debug1: Offering public key: /home/michael/.ssh/id_dsa |
31 |
debug1: Authentications that can continue: publickey,gssapi-with-mic,password |
32 |
debug1: Next authentication method: password |
33 |
====================================== |
34 |
|
35 |
> > Second, my id_dsa is my private key not my public key. My public key is |
36 |
> > id_dsa.pub |
37 |
> |
38 |
> but you will need your private key to be authenticated. that's why it is |
39 |
> *private*. |
40 |
|
41 |
That's right, so why does it: |
42 |
====================================== |
43 |
debug1: Trying private key: /home/michael/.ssh/id_rsa <--this doesn't exist |
44 |
debug1: Offering public key: /home/michael/.ssh/id_dsa <--this is my private |
45 |
key |
46 |
====================================== |
47 |
> > Is this a server configuration issue, or something to do with my Gentoo |
48 |
> > set up? |
49 |
> |
50 |
> ana in the server you'll need to put your *public* key into |
51 |
> ~/.ssh/authorized_keys file. |
52 |
|
53 |
I have of course done this first. |
54 |
|
55 |
> > PS. Not sure if this is relevant but although my user name on the server |
56 |
> > is mick, for reasons better known to him the sysadmin has created my home |
57 |
> > directory as /home/mic - could it be that sshd is looking for /home/mick? |
58 |
> |
59 |
> that messages isn't from the server, is from client running locally. but it |
60 |
> doesnt matter for what you want. |
61 |
|
62 |
It matters if the server is trying to find id_dsa.pub in a non-existing |
63 |
directory. |
64 |
-- |
65 |
Regards, |
66 |
Mick |