From owner-freebsd-questions Mon Jun 17 13:56:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-56.dsl.lsan03.pacbell.net [63.207.60.56]) by hub.freebsd.org (Postfix) with ESMTP id 794D637B408 for ; Mon, 17 Jun 2002 13:56:50 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 3611366E50; Mon, 17 Jun 2002 13:56:50 -0700 (PDT) Date: Mon, 17 Jun 2002 13:56:50 -0700 From: Kris Kennaway To: Peter Leftwich Cc: Kris Kennaway , FreeBSD LIST Subject: Re: sftp/ssh quell shell? Message-ID: <20020617135650.B29827@xor.obsecurity.org> References: <20020616040448.A16491@xor.obsecurity.org> <20020617024407.T58869-100000@earl-grey.cloud9.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="3uo+9/B/ebqu+fSQ" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020617024407.T58869-100000@earl-grey.cloud9.net>; from Hostmaster@Video2Video.Com on Mon, Jun 17, 2002 at 02:47:18AM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --3uo+9/B/ebqu+fSQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 17, 2002 at 02:47:18AM -0400, Peter Leftwich wrote: > On Sun, 16 Jun 2002, Kris Kennaway wrote: > > On Sun, Jun 16, 2002 at 12:28:37AM -0700, Peter Leftwich wrote: > > PL> Does anyone know how to pass an "ssh" flag that would quell the sou= rcing of my destination:~/.cshrc file? > > A better question is why you want to do that. >=20 > Glad you asked. A few months ago when I began -- to no end -- > experimenting to get scp (and qpopper) to work, the problem I kept running > up against seemed to be that I was running tcsh as my shell on both the > local FreeBSD box and the destination FreeBSD box. All I wanted to do was > securely transmit my password and copy a large tarred directory! Grrr.. This cannot be the cause of your problem: I (and many other people, since tcsh is ths default FreeBSD shell) do this every day. > > If for some reason you don't want your tcsh to execute commands when lo= gging in via ssh, test in your .cshrc for one of the environment variables = that ssh sets and only perform them if not set. > > Kris >=20 > Not sure I follow 100% but you've got me on the right track I suppose, Th= x. =2Ecshrc is a shell script. You can use csh commands to only conditionally execute part of the script if the variables are set. Kris --3uo+9/B/ebqu+fSQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9Dk0RWry0BWjoQKURAlFNAJ48OV+P4rcnHhY31Jr/F/wdjBhKvwCfRC3g zT4Cgh/iamCh7ZdTPu08idk= =5hrp -----END PGP SIGNATURE----- --3uo+9/B/ebqu+fSQ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message