差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

下次修改
前次修改
ssh [2016/11/06 17:40]
jz 建立
ssh [2018/01/01 23:11] (目前版本)
jz
行 1: 行 1:
-====== ​receive ​sound via SSH ======+====== sound redirection ​======
  
 +===== power line font =====
 +[[https://​github.com/​eugeii/​consolas-powerline-vim]]
 +
 +===== receive sound via SSH =====
 +<code bash>
 ssh <​user>​@<​remotehost>​ '​arecord -f cd -t raw | oggenc - -r' | mplayer - ssh <​user>​@<​remotehost>​ '​arecord -f cd -t raw | oggenc - -r' | mplayer -
 ssh <​user>​@<​remotehost>​ ffmpeg -f alsa -ac 1 -i hw:3 -f ogg - | mplayer - -idle -demuxer ogg ssh <​user>​@<​remotehost>​ ffmpeg -f alsa -ac 1 -i hw:3 -f ogg - | mplayer - -idle -demuxer ogg
 +</​code>​
  
-====== send sound via SSH ====== +===== send sound via SSH ===== 
 +<code bash>
 arecord -f cd -t raw | oggenc - -r | ssh <​user>​@<​remotehost>​ mplayer - arecord -f cd -t raw | oggenc - -r | ssh <​user>​@<​remotehost>​ mplayer -
 ffmpeg -f alsa -ac 1 -i hw:3 -f ogg - | ssh <​user>​@<​remotehost>​ mplayer - -idle -demuxer ogg ffmpeg -f alsa -ac 1 -i hw:3 -f ogg - | ssh <​user>​@<​remotehost>​ mplayer - -idle -demuxer ogg
 +</​code>​
  
 http://​unix.stackexchange.com/​questions/​116919/​redirect-sound-microphone-via-ssh-how-to-telephone-via-ssh http://​unix.stackexchange.com/​questions/​116919/​redirect-sound-microphone-via-ssh-how-to-telephone-via-ssh
 +
 +====== Disable reverse dns ======
 +vim /​etc/​ssh/​sshd_config
 +<code bash>
 +UseDNS no
 +</​code>​
 +
 +====== Show fingerprint ======
 +<code bash>
 +ssh-keygen -lf ~/​.ssh/​id_rsa.pub -E md5
 +</​code>​