|  | @@ -643,17 +643,20 @@ ServerKeyBits 4096
 | 
	
		
			
			| 643 | 643 |  Protocol 2
 | 
	
		
			
			| 644 | 644 |  PermitEmptyPasswords no
 | 
	
		
			
			| 645 | 645 |  StrictModes yes
 | 
	
		
			
			|  | 646 | +TCPKeepAlive no
 | 
	
		
			
			| 646 | 647 |  #+END_SRC
 | 
	
		
			
			| 647 | 648 |  
 | 
	
		
			
			| 648 | 649 |  Append the following:
 | 
	
		
			
			| 649 | 650 |  
 | 
	
		
			
			| 650 | 651 |  #+BEGIN_SRC: bash
 | 
	
		
			
			|  | 652 | +ClientAliveInterval 60
 | 
	
		
			
			|  | 653 | +ClientAliveCountMax 3
 | 
	
		
			
			| 651 | 654 |  Ciphers aes256-ctr,aes192-ctr,aes128-ctr
 | 
	
		
			
			| 652 | 655 |  MACs hmac-sha2-512,hmac-sha2-256,hmac-ripemd160
 | 
	
		
			
			| 653 | 656 |  KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1
 | 
	
		
			
			| 654 | 657 |  #+END_SRC
 | 
	
		
			
			| 655 | 658 |  
 | 
	
		
			
			| 656 |  | -CTRL-X CTRL-S to save, then CTRL-X CTRL-C to exit.  Now clear out any pre-existing host keys and reconfigure the ssh server.
 | 
	
		
			
			|  | 659 | +CTRL-x CTRL-s to save, then CTRL-x CTRL-c to exit.  Now clear out any pre-existing host keys and reconfigure the ssh server.
 | 
	
		
			
			| 657 | 660 |  
 | 
	
		
			
			| 658 | 661 |  #+BEGIN_SRC: bash
 | 
	
		
			
			| 659 | 662 |  rm /etc/ssh/ssh_host_*
 | 
	
	
		
			
			|  | @@ -4046,7 +4049,7 @@ Get the source code.
 | 
	
		
			
			| 4046 | 4049 |  #+BEGIN_SRC: bash
 | 
	
		
			
			| 4047 | 4050 |  export HOSTNAME=mydomainname.com
 | 
	
		
			
			| 4048 | 4051 |  cd /var/www/$HOSTNAME
 | 
	
		
			
			| 4049 |  | -mv htdocs htdocs_old
 | 
	
		
			
			|  | 4052 | +rm -rf htdocs
 | 
	
		
			
			| 4050 | 4053 |  git clone https://github.com/friendica/red.git htdocs
 | 
	
		
			
			| 4051 | 4054 |  chmod -R 755 htdocs
 | 
	
		
			
			| 4052 | 4055 |  chown -R www-data:www-data htdocs
 | 
	
	
		
			
			|  | @@ -4067,7 +4070,7 @@ emacs /etc/crontab
 | 
	
		
			
			| 4067 | 4070 |  and append the following, changing mydomainname.com to whatever your domain is.
 | 
	
		
			
			| 4068 | 4071 |  
 | 
	
		
			
			| 4069 | 4072 |  #+BEGIN_SRC
 | 
	
		
			
			| 4070 |  | -*/10 *  * * *	root	cd /var/www/mydomainname.com/htdocs; /usr/bin/php include/poller.php
 | 
	
		
			
			|  | 4073 | +12,22,32,42,52 * *   *   *   root cd /var/www/apespace.org/htdocs; /usr/bin/timeout 240 /usr/bin/php include/poller.php
 | 
	
		
			
			| 4071 | 4074 |  #+END_SRC
 | 
	
		
			
			| 4072 | 4075 |  
 | 
	
		
			
			| 4073 | 4076 |  Save and exit, then restart cron.
 |