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
[-- Attachment #1 --] 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 sourcing of my destination:~/.cshrc file? > > A better question is why you want to do that. > > 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 logging in via ssh, test in your .cshrc for one of the environment variables that ssh sets and only perform them if not set. > > Kris > > Not sure I follow 100% but you've got me on the right track I suppose, Thx. .cshrc is a shell script. You can use csh commands to only conditionally execute part of the script if the variables are set. Kris [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9Dk0RWry0BWjoQKURAlFNAJ48OV+P4rcnHhY31Jr/F/wdjBhKvwCfRC3g zT4Cgh/iamCh7ZdTPu08idk= =5hrp -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020617135650.B29827>
