Re: Using multiple keys with ssh-agent
Hi,
* Bill Moseley <moseley@hank.org> [030217 16:02]:
>
> I want to be able to ssh into machine "remote" and have pine start
> automatically. But I also want to be able to ssh in and have a normal
> shell.
>
> So, I created a new key pair with:
>
> ssh-keygen -t dsa -f id_dsa_pine
>
> then added the new public key to remote's .ssh/authorized_keys2 file. I
> also prepended command="pine -i" to that new public key.
>
> So, I can now go
>
> ssh remote
>
> and get a remote shell. Or I can type
>
> ssh -i id_dsa_pine remote
<snip>
Maybe I'm missing something but surely it would be easier to just have
the one key and then just run
ssh remote pine -i
Cheers,
Nick.
--
Debian testing/unstable
Linux onefish 2.4.20-lavienx #1 Mon Jan 6 17:03:01 JST 2003
i686 unknown unknown GNU/Linux
Reply to: