[SWLUG] using ssh to talk to a server?
Justin Mitchell
justin at discordia.org.uk
Fri May 2 11:02:32 UTC 2008
On Fri, 2008-05-02 at 11:44 +0100, Mark Summerfield wrote:
> What I'd really like it to be able to make both machines "trust" each
> other, but without that trust extending past the router that they are
> connected by (and that is connected to the Internet).
>
> Could I create a ~/.ssh/ssh_config file or some such on each machine to
> do that?
you can make an account on one machine be able to login to the other
without a password.
on the 'from' machine first run ssh-keygen, just hit enter to its
questions, and dont set a password otherwise youve just moved the
problem.
this will create ~/.ssh/id_rsa and id_rsa.pub
copy the contents of id_rsa.pub from the local machine and add it to the
end of ~/.ssh/authorized_keys on the target machine. create the file if
you have to.
now whenever you ssh from an account that has the ~/.ssh/id_rsa file,
into an account that has the ~/.ssh/authorized_keys file, it wont ask
for a password.
copy those files to any other accounts/machines that you need this to
work for.
More information about the Swlug
mailing list