From owner-freebsd-questions Tue Nov 21 15:51:54 2000 Delivered-To: freebsd-questions@freebsd.org Received: from giroc.albury.net.au (giroc.albury.NET.AU [203.15.244.13]) by hub.freebsd.org (Postfix) with ESMTP id 4C79D37B4E5 for ; Tue, 21 Nov 2000 15:51:49 -0800 (PST) Received: (from nicks@localhost) by giroc.albury.net.au (8.11.1/8.11.1) id eALNpK411112; Wed, 22 Nov 2000 10:51:20 +1100 (EST) Date: Wed, 22 Nov 2000 10:51:20 +1100 From: Nick Slager To: Jim Thario Cc: freebsd-questions@FreeBSD.ORG Subject: Re: SSH non-interactive login? Message-ID: <20001122105120.A9396@albury.net.au> References: <02ea01c05411$dd7e6800$64f6a8c0@SWENG65M> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <02ea01c05411$dd7e6800$64f6a8c0@SWENG65M>; from jim@thario.com on Tue, Nov 21, 2000 at 04:22:05PM -0700 X-Homer: Whoohooooooo! Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thus spake Jim Thario (jim@thario.com): > I need to perform a non-interactive login using SSH to another machine to > run a shell script. I can't seem to find a parameter for supplying a > password on the command-line. Is there any way to do this? Don't Do That (tm). Instead, put your public key on the remote machine in ~/.ssh/authorized_keys2 (if you're using SSH2 with DSA encryption). man ssh for more details. Nick -- From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message