Date: Mon, 17 Jun 2002 20:03:06 -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? [Kris] Message-ID: <20020617200306.A3026@xor.obsecurity.org> In-Reply-To: <20020617190413.F80624-100000@earl-grey.cloud9.net>; from Hostmaster@Video2Video.Com on Mon, Jun 17, 2002 at 07:08:24PM -0400 References: <20020617135650.B29827@xor.obsecurity.org> <20020617190413.F80624-100000@earl-grey.cloud9.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 17, 2002 at 07:08:24PM -0400, Peter Leftwich wrote: > On Mon, 17 Jun 2002, Kris Kennaway wrote: > > PL> experimenting to get scp (and qpopper) to work, the problem I kept = running > > PL> up against seemed to be that I was running tcsh as my shell on both= the > > PL> local FreeBSD box and the destination FreeBSD box. All I wanted to= do was > > This cannot be the cause of your problem: I (and many other people, sin= ce tcsh is ths default FreeBSD shell) do this every day. >=20 > myprompt$ scp -S ssh -C pete@thehostname-here.com:/var/mail/pete > usage: scp [-pqrvBC46] [-S ssh] [-P port] [-c cipher] [-i identity] f1 f2 > or: scp [options] f1 ... fn directory Well, that's an invalid command because you left out the destination path ("f2"). And FYI, you don't need the -S argument unless you want to override the default ("ssh"). > I was going to show you what I mean, but I don't remember how, ugh. The > error message was something related to "setenv TERM" and some kind of > ioctyl undefined message or something. OK, so it's something in your .cshrc which is only supposed to be done when logging in to a hardware console, not remotely. This is a bug in your .cshrc. > Oh and by the way, `man scp` doesn't explain *where* you want the remote > file copied, for example, to the working directory or mirror the full path > of the remote file locally. Know whaddaye mane? Not really. The 'f2' argument to scp tells it where to put the files copie= d. > > PL> Not sure I follow 100% but you've got me on the right track I suppo= se, Thx. > > .cshrc is a shell script. You can use csh commands to only conditional= ly execute part of the script if the variables are set. -Kris >=20 > Uh, what? Nevermind, I'm not going to explain how to write a shell script :-) You can research it on your own if you're interested. Kris --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9DqLpWry0BWjoQKURAvR0AKDuVLebbEM3d+J/RvkHcmAwti5WWwCfVX4h uPq7jl8q8QnRUKlwDn1NeyA= =eSb5 -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK-- 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?20020617200306.A3026>