Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Nov 2000 10:51:20 +1100
From:      Nick Slager <nicks@albury.net.au>
To:        Jim Thario <jim@thario.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: SSH non-interactive login?
Message-ID:  <20001122105120.A9396@albury.net.au>
In-Reply-To: <02ea01c05411$dd7e6800$64f6a8c0@SWENG65M>; from jim@thario.com on Tue, Nov 21, 2000 at 04:22:05PM -0700
References:  <02ea01c05411$dd7e6800$64f6a8c0@SWENG65M>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001122105120.A9396>