Passwordless SSH setup
On Wed, Jun 02, 2004 at 12:42:38AM -0500, Will Trillich wrote:
> /usr/bin/rsync \
> -vaz \
> -e /usr/bin/ssh \
> --delete \
> /home/office/ \
> 10.1.1.5:/home/shared/
>
> this assumes passwordless ssh connections are already set up, of
> course. (ssh-agent, ssh-keygen, which see.)
okay, that was a bit terse...
for passwordless SSH-ing, try this (and feel free to augment or
correct if i overlook something)--
localbox$ ssh-keygen -t dsa
after some q&a (just answer with blanks, for passwordless
connections) this creates a ~/.ssh/id_dsa.pub file that you can
append to your remote systems' ~/.ssh/authorized_keys files:
localbox$ scp ~/.ssh/id_dsa.pub me@remotebox:~/.ssh/localboxKey
localbox$ ssh me@remotebox
<password>
remotebox$ cd ~/.ssh
remotebox$ cat localboxKey >> authorized_keys
remotebox$ chmod 600 authorized_keys
remotebox$ rm localboxKey
remotebox$ logout
localbox$
poof!
localbox$ ssh me@remotebox
<no password needed!>
remotebox$
now you're all set for passwordless login!
--
I use Debian/GNU Linux version 3.0;
Linux boss 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002 i586 unknown
DEBIAN NEWBIE TIP #18 from Will Trillich <will@serensoft.com>
:
How do you DISABLE A NETWORK SERVICE? There are several ways
network services are made available: for inetd items, modify
/etc/inetd.conf and then "/etc/init.d/inetd restart". For
independently-running daemons, try "/etc/init.d/<daemon> stop"
(or to permanently zap them, "apt-get --purge remove <daemon>").
Also see http://newbieDoc.sourceForge.net/ ...
Reply to: