From owner-freebsd-questions Thu Mar 15 3:52:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from siafu.iconnect.co.ke (upagraha.iconnect.co.ke [209.198.248.2]) by hub.freebsd.org (Postfix) with ESMTP id 2224437B718 for ; Thu, 15 Mar 2001 03:52:31 -0800 (PST) (envelope-from wash@poeza.iconnect.co.ke) Received: from [212.22.161.3] (helo=ns2.iconnect.co.ke) by siafu.iconnect.co.ke with esmtp (Exim 2.12 #1) id 14dWGj-0005DZ-00 for freebsd-questions@freebsd.org; Thu, 15 Mar 2001 14:50:13 +0300 Received: from amavis by ns2.iconnect.co.ke with scanned-ok (Exim 3.12 #1) id 14dWIm-000A1F-00 for freebsd-questions@freebsd.org; Thu, 15 Mar 2001 14:52:20 +0300 Received: from host-64-110-74-50.interpacket.net ([64.110.74.50] helo=poeza.iconnect.co.ke) by ns2.iconnect.co.ke with esmtp (Exim 3.12 #1) id 14dWIh-0009xj-00 for freebsd-questions@freebsd.org; Thu, 15 Mar 2001 14:52:16 +0300 Received: from wash by poeza.iconnect.co.ke with local (Exim 3.20 #1) id 14dWKW-0006cM-00 for freebsd-questions@freebsd.org; Thu, 15 Mar 2001 14:54:08 +0300 Date: Thu, 15 Mar 2001 14:54:08 +0300 From: Odhiambo Washington To: FBSD-Q Subject: SSH and remote execution of tasks Message-ID: <20010315145408.A24595@poeza.iconnect.co.ke> Mail-Followup-To: Odhiambo Washington , FBSD-Q Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD poeza.iconnect.co.ke 4.3-BETA FreeBSD 4.3-BETA X-Mailer: Mutt http://www.mutt.org/ X-Location: Mombasa, KE, East Africa Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I am sorry if this has been discussed before. I just have to ask because I did not find the answer in the man page. We've disabled telnetd in a couple servers that we have so we have resorted to SSH. I have seen discussions on the list regarding the running of a task on a remote machine without the option of login to a shell.=20 Now my Q is, where do I get all these details? I have a case where I have to run a script to update user accounts and since a few people use the same script we decided to give little executionary privilege via sudo. So I am in my shell on hostA and all I want to do is run scriptX on hostB via ssh. I always have to verify my passwd when running scriptX from a shell isn hostB. How do I do that via SSH?=20 -Wash -- Odhiambo Washington Inter-Connect Ltd., wash@iconnect.co.ke 5th Flr Furaha Plaza Tel: 254 11 222604 Nkrumah Rd., Fax: 254 11 222636 PO Box 83613 MOMBASA, KE. It is illegal to drive more than two thousand sheep down Hollywood Boulevar= d=20 at one time.=20 --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE6sK1gA2k+MNyI/bERAvRsAJ9X0+4nrxSXJp34IcIb6Q8mvMi3ZQCgnMCN 2dZtsMIjgEv8VkgzoCR6Mvc= =AENN -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message