Skip to content
Update ssh authored by umaumax's avatar umaumax
......@@ -354,6 +354,18 @@ e.g. `ssh-keygen -t ecdsa -b 521`
* AWSからの通信の場合は適用した方が、スループット・レイテンシーともに増えた
* パフォーマンス測定の結果、通常のsshのフォワーディングが260MiB/sのところ、40MiB/sとなった(この場合、sshによる実際の圧縮率は不明)
圧縮している場合のバッファリングの挙動が不明であるが、次の実験をする限りはバッファリングによる待機時間は非常に短いのではないかと考えられる
``` bash
# ローカルポートフォワーディング
ssh -C -N -L 28080:127.0.0.1:8080 localhost
# 受信
nc -l 8080
# 送信
{ while true; do echo -n "$i."; sleep 0.1; i=$((i+1)); done; cat; } | nc localhost 28080
```
## tips
### [while内でsshを使うと1回で止まる \- Miuran Business Systems]( http://site.m-bsys.com/error/whileread-ssh )
use `ssh -n` for avoid staling `stdin` (`-n Redirects stdin from /dev/null (actually, prevents reading from stdin). This must be used when ssh is run in the background.`)
......
......