Diferencia entre revisiones de «Sysadmin»

De Furilo
Ir a la navegación Ir a la búsqueda
Línea 1: Línea 1:
== Change default SSH port ==  
+
== Rails in production ==  
  
<code>
+
* [https://gist.github.com/xhj/5938280 Deploy Rails App with Puma and Nginx via Mina]
vi /etc/ssh/sshd_config
+
* [http://blog.mccartie.com/2014/08/28/digital-ocean.html Digital Ocean: Ubuntu, Nginx, Unicorn, Rails]
 
+
* [http://www.cubicleapps.com/articles/ubuntu-rails-ready-with-nginx-unicorn Ubuntu, Rails ready, with nginx & unicorn]
Port 50683
 
 
 
/etc/init.d/ssh restart
 
 
 
ssh username@hostname.com -p 50683
 
</code>
 
  
 +
== SSH ==
  
== Prevent root user from being able to log in via SSH ==  
+
=== Change default SSH port + Prevent root user from loging in via SSH ===
  
 
<code>
 
<code>
 
vi /etc/ssh/sshd_config
 
vi /etc/ssh/sshd_config
 
 
PermitRootLogin no
 
PermitRootLogin no
 
+
Port 50683
/etc/init.d/sshd restart
+
/etc/init.d/ssh restart
 
+
ssh [email protected] -p 50683
 
</code>
 
</code>
  

Revisión del 15:25 4 dic 2014

Rails in production

SSH

Change default SSH port + Prevent root user from loging in via SSH

vi /etc/ssh/sshd_config PermitRootLogin no Port 50683 /etc/init.d/ssh restart ssh [email protected] -p 50683

Problems installing gems in Mac OS X

If error:

clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]


Solution

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install ...