Date: Mon, 17 Jun 2002 13:56:50 -0700 From: Kris Kennaway <kris@obsecurity.org> To: Peter Leftwich <Hostmaster@Video2Video.Com> Cc: Kris Kennaway <kris@obsecurity.org>, FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org> Subject: Re: sftp/ssh quell shell? Message-ID: <20020617135650.B29827@xor.obsecurity.org> In-Reply-To: <20020617024407.T58869-100000@earl-grey.cloud9.net>; from Hostmaster@Video2Video.Com on Mon, Jun 17, 2002 at 02:47:18AM -0400 References: <20020616040448.A16491@xor.obsecurity.org> <20020617024407.T58869-100000@earl-grey.cloud9.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020617135650.B29827>