Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
ssh [2015/06/01 17:31]
steve
ssh [2015/10/30 15:12]
steve
Line 3: Line 3:
   * [[dropbear]]   * [[dropbear]]
   * [[OpenSSH]]   * [[OpenSSH]]
 +  * [[ssh-keygen]]
  
 === Managing Keys === === Managing Keys ===
Line 65: Line 66:
 iptables -A rate-limit -j DROP iptables -A rate-limit -j DROP
 iptables -I INPUT 1 -p tcp --dport 22 -j rate-limit iptables -I INPUT 1 -p tcp --dport 22 -j rate-limit
 +</​code>​
 +
 +==== Gotchas ====
 +
 +** Running ''​ssh''​ in a while loop exits early **
 +
 +''​ssh''​ may be reading things from stdin, so pipe ''/​dev/​null''​ to it directly:
 +
 +<​code>​
 +ssh < /dev/null
 </​code>​ </​code>​