From owner-freebsd-questions@FreeBSD.ORG Fri Mar 25 03:40:19 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5981B16A4CE for ; Fri, 25 Mar 2005 03:40:19 +0000 (GMT) Received: from web54009.mail.yahoo.com (web54009.mail.yahoo.com [206.190.36.233]) by mx1.FreeBSD.org (Postfix) with SMTP id 96AA143D3F for ; Fri, 25 Mar 2005 03:40:18 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: (qmail 1963 invoked by uid 60001); 25 Mar 2005 03:40:16 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=nirWj5qoOhcDRH6G6mPVqpPIC/wWKEPCF5ghbmX5zLS2jnPX6AwxJTUKoKCr9CC+kZt996kGIZ80vTLrJ01ueEeXgCJyMwH9vk5COSt5N8or4akGFVmTRTlB2VEuPvMBDpWF7/MbMcNeLq4u4pkW4gmpHeiLG8/xpAQGDCXVi8g= ; Message-ID: <20050325034016.1961.qmail@web54009.mail.yahoo.com> Received: from [147.46.44.181] by web54009.mail.yahoo.com via HTTP; Thu, 24 Mar 2005 19:40:15 PST Date: Thu, 24 Mar 2005 19:40:15 -0800 (PST) From: Rob To: FreeBSD questions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: shell stdin redirection: possible for ssh-password input? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 03:40:19 -0000 Hi, I must connect to another computer with ssh, but this computer does not allow password-less connections (i.e. the administrator has disabled the use of id_dsa.pub, authorized_key etc.) I'm trying to write a script to do the ssh connection automatically, but the script always prompts for the password. Can I construct an input redirect, so that I can feed the password via my script? I tried following: #!/bin/sh ssh myISP <