Re: Problem setting up passwordless connection
From: Duncan Murdoch (dmurdoch_at_pair.com)
Date: 04/24/04
- Next message: Fritz: "Re: Port forwarding, multiple IP"
- Previous message: couzteau: "Problem setting up passwordless connection"
- In reply to: couzteau: "Problem setting up passwordless connection"
- Next in thread: Jack Moe: "Re: Problem setting up passwordless connection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 24 Apr 2004 15:50:16 -0400
On 24 Apr 2004 12:17:51 -0700, couzteau@bitfaeule.net (couzteau)
wrote:
>i created keys and copied them to authorized keys on my local and my
>remote machine:
>ssh-keygen -t dsa -f ~/.ssh/id_dsa
>cat ~/.ssh/id_dsa.pub | ssh user@dixon.local 'cat - >>
>~/.ssh/authorized_keys'
>cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
It looks as though you only created one key, and copied it's public
half to authorized_keys on both machines. The private half should be
on the originating machine, and the public half on the machine you're
connecting to, so you'll only be able to connect from the machine
where you executed those lines to the other.
To let it connect to you, you should repeat the equivalent of the
first two commands on it: generate a key pair there, and copy the
public half over.
The 2nd copy doesn't do anything useful unless you have the same
private key on both machines, and that's probably a bad idea.
Duncan Murdoch
- Next message: Fritz: "Re: Port forwarding, multiple IP"
- Previous message: couzteau: "Problem setting up passwordless connection"
- In reply to: couzteau: "Problem setting up passwordless connection"
- Next in thread: Jack Moe: "Re: Problem setting up passwordless connection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]