Difference between revisions of "ChaosVPN:Tims random router configs"

From CCCHHWiki
Jump to: navigation, search
m
 
Line 8: Line 8:
 
mv /etc/ssh/tmp /etc/ssh/sshd_config
 
mv /etc/ssh/tmp /etc/ssh/sshd_config
 
rm /etc/ssh/tmp
 
rm /etc/ssh/tmp
 +
</nowiki>
 +
 +
 +
copy an install (boot from livecd) from one HD to another:
  
</nowiki>
+
#tar cf - . | (cd /path/to/mountpoint; tar xf -)

Latest revision as of 00:41, 16 February 2014

## misc nice things

# stop sshd timeouts
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.old
sed 's/#*ClientAliveInterval[[:space:]][0-9]*/ClientAliveInterval 30/g' -e 's/#*ClientAliveCountMax[[:space:]][0-9]*/ClientAliveCountMax 4/g' /etc/ssh/sshd_config > /etc/ssh/tmp
mv /etc/ssh/tmp /etc/ssh/sshd_config
rm /etc/ssh/tmp


copy an install (boot from livecd) from one HD to another:

#tar cf - . | (cd /path/to/mountpoint; tar xf -)