Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've noticed in the past that when I paste into a terminal window connected over SSH that occasionally characters get dropped from the stream. Usually I ignore the issue and search/replace them manually, but this time I investigated more.

I found out that ever 512th character doesn't make it to the server. So, if I paste the following string:


...all I see in the terminal window is a row of underscores.

This happens pretty consistently across the various servers I need to connect to - is it a problem with my terminal, the SSH setup on the servers, SSH in general or something else?


I'm using OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009 on Snow Leopard, but noticed the issue on Leopard previously too

share|improve this question
I can't reproduce this from client OS X 10.6.5 (OpenSSH_5.2p1) up against OpenBSD 4.8 running OpenSSH 5.6. Tell us more. If you cat > /dev/null and paste into your ssh session, does it also happen? Does it happen if you paste locally into an OS X terminal? – Alex Holst Nov 16 '10 at 17:22

Almost certainly your SSH client, I use putty and routinely past in more than 512 chars, I couldn't recommend it more.

share|improve this answer
Yea this is certainly a client problem, I paste hundreds of lines of code into nano through my ssh terminal all the time without problem. – Chris Nov 18 '10 at 15:54

Some Operating Systems use short buffers for the pseudo-tty pipes and when they are overflooded they just drop data

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.