From owner-freebsd-questions@FreeBSD.ORG Mon Dec 1 02:04:06 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E08B106567B for ; Mon, 1 Dec 2008 02:04:06 +0000 (UTC) (envelope-from eagletree@hughes.net) Received: from smtprelay.b.hostedemail.com (smtprelay0080.b.hostedemail.com [64.98.42.80]) by mx1.freebsd.org (Postfix) with ESMTP id B9DDE8FC26 for ; Mon, 1 Dec 2008 02:04:05 +0000 (UTC) (envelope-from eagletree@hughes.net) Received: from filter.hostedemail.com (b-bigip1 [10.5.19.254]) by smtprelay02.b.hostedemail.com (Postfix) with SMTP id F209238A6B5C for ; Mon, 1 Dec 2008 02:04:03 +0000 (UTC) X-SpamScore: 1 X-Spam-Summary: 2, 0, 0, f1de0b0fe1d55a79, 944facfeb153b4f0, eagletree@hughes.net, freebsd-questions@freebsd.org, RULES_HIT:152:355:379:541:564:599:601:945:946:960:966:967:968:973:980:988:989:1260:1261:1277:1311:1313:1314:1345:1359:1437:1513:1515:1516:1518:1521:1534:1542:1593:1594:1676:1711:1730:1747:1766:1792:2196:2198:2199:2200:2234:2393:2525:2553:2559:2563:2682:2685:2827:2857:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3027:3355:3636:3740:3865:3866:3867:3868:3869:3870:3871:3872:3873:3874:3876:3877:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4385:4860:5007:6114:6117:6119:6120:7652:7679:7901:7903:8501:8603:9010:9025:9388:9391, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:, MSBL:none, DNSBL:none Received: from [192.168.0.3] (dpc6744118153.direcpc.com [67.44.118.153]) (Authenticated sender: eagletree@hughes.net) by omf09.b.hostedemail.com (Postfix) with ESMTP for ; Mon, 1 Dec 2008 02:03:58 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: References: Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Message-Id: <7A98FEF9-AA2E-4860-A1BD-A15BD9CACA34@hughes.net> Content-Transfer-Encoding: quoted-printable From: Chris Date: Sun, 30 Nov 2008 18:03:49 -0800 To: FreeBSD-Questions Questions X-Mailer: Apple Mail (2.753) X-session-marker: 6561676C6574726565406875676865732E6E6574 Subject: Re: Pasting via ssh causes data loss X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 02:04:06 -0000 On Nov 30, 2008, at 2:20 PM, Eugene Pimenov wrote: > > > On 30 =D0=BD=D0=BE=D1=8F=D0=B1, 23:20, Ivan Voras = wrote: >> >> I regularly do copy-pastes of textual data of that size (and =20 >> larger) in >> interactive sessions (with text editors) without problems, between >> FreeBSD machines and from Linux to FreeBSD machines. Are you sure =20 >> it's >> not a problem with your terminal application and not on the server =20= >> side? >> (try a different terminal). > > Tried a different terminal. iTerm to be exact. The same problem, the > same number of bytes. > I was curious about your situation and set up a couple of tests. Noting you mentioned iTerm, I thought I might be able to recreate it on a Mac (OS-X 10.4 with 1.4.3 (100) version Terminal, I had removed iTerm due to unreliability sometime back). I copied a 23094 byte program I was working on locally in MacVIM. I =20 first did a cat >testfile then pasted through an ssh terminal.app connection =20 over satellite (very bad connection) into a FreeBSD 7.0 box I built in the last month. At the far end it received 23094 bytes. sftp of the file to the remote and diff showed no differences. I then opened an ssh session to a FreeBSD =20= server on my local lan and repeated with the same results. No problems. The problem does not appear to be obvious or common so there must be =20 something unique about how this situation if you have reproduced it on two different terminal programs using ssh that would work correctly to other servers using the same shell and collection method (e.g. cat >blah). Something missing here. Have you checked if you have errors shown on the interface of the server? Are there losses if you =20 sftp the files from your machine to the remote (Try pushing a 1.5 MB file and see if that shows failures). Did you install something other than the =20= default OpenSSH on the server? Do the text files have something other than text in them or even control sequences for the remote? Just taking =20 potshots here. A somewhat side note here, I would personally never think to move =20 files this way since it's quite possible that content of files can disrupt the =20 stream. I tend to use sftp. > A friend of mine tried from gentoo linux on his laptop (he'is using > yakukake (terminal)), and reproduced the same issue, but different > amount of bytes (3221 for the server that receives 5181 from me). > > Is there some stupid sysctl setting? or something like that? I'm so > tired of pasting into a linux box and wget from it into a freebsd box. > >> >> signature.asc >> < 1K=D0=B1=D0=9F=D1=80=D0=BE=D1=81=D0=BC=D0=BE=D1=82=D1=80=D0=B5=D1=82=D1= =8C=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8=D1=82=D1=8C > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-=20 > unsubscribe@freebsd.org" >