Difference between revisions of "RHEL"
From Wasya Wiki
(→ssh) |
|||
Line 63: | Line 63: | ||
sudo passwd -d deploy | sudo passwd -d deploy | ||
+ | |||
+ | /etc/pam.d/sshd, just remove the existing auth lines and replace them with: | ||
+ | |||
+ | auth required pam_deny.so |
Latest revision as of 23:03, 31 December 2018
Contents
RHEL setup
yum install httpd -y service httpd start yum install git emacs screen -y yum groupinstall "Development Tools" -y yum install -y openssl-devel readline-devel zlib-devel # manage keys # get rbenv, rubies # put stuff in that ~/.bashrc file # screenrc # virtual site for another port for now... # enable proxy_module for httpd # /etc/httpd/conf/httpd.conf, include all virtual site definitions # install mongodb: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/
RHEL bashrc
alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' alias ll='ls -lah' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi export PATH="/opt/.rbenv/bin:$PATH" export RBENV_ROOT="/opt/.rbenv" if [ -d "${RBENV_ROOT}" ]; then export PATH="${RBENV_ROOT}/bin:${PATH}" fi eval "$(rbenv init -)"
virtual site
<VirtualHost *:80> ServerAdmin victor@wasya.co ServerName staging-smt.wasya.co KeepAlive On ProxyVia On ProxyPreserveHost On <proxy> Order deny,allow Allow from all </proxy> ProxyPass / http://127.0.0.1:3000/ connectiontimeout=15 timeout=45 ProxyPassReverse / http://127.0.0.1:3000/ </VirtualHost>
ssh
delete the password for user, so that there is no waring about it being expired. From: https://www.2daygeek.com/passwd-command-examples-part-l/#
sudo passwd -d deploy
/etc/pam.d/sshd, just remove the existing auth lines and replace them with:
auth required pam_deny.so