Recently I had to launch an Ubuntu instance in AWS because i needed to run alien to convert a .rpm into a .deb package. When I added my SSH keys as usual, I found I was still unable to login. This is the error from the /var/log/auth.log file: Dec 9 16:47:55 localhost sshd[1550]: userauth_pubkey: key […]
As usual, whenever I have to do sysadmin on a Ubuntu-based OS, I find problems. When will people realize what a horrible OS it is? In this case, packages needed were unavailable. For apt-get to function, the file /etc/apt/sources.list must be edited to change all URLs from security.ubuntu.com and archive.ubuntu.com to old-releases.ubuntu.com, using the sed […]
Add the following four lines to the bottom of /etc/security/limits.conf: root soft nofile 65535 root hard nofile 65535 * soft nofile 65535 * hard nofile 65535 NOTE: All whitespace MUST be a single tab! Also edit these three files: /etc/pam.d/su /etc/pam.d/common-session /etc/pam.d/common-session-noninteractive and add the following one line: session required pam_limits.so