Security

post-thumb

[AWS How To Security]

SSH to an AWS Instance over SSM

The problem with SSHing to EC2 Instances

A console by any other name

While you can use an SSH proxy command to connect over SSM to your AWS EC2 instances, if you do, you lose the ability to log the session properly (should you need to) as you’re pushing SSH encryption over the SSM encryption and your AWS set up won’t be able to decrypt that.

read more
post-thumb

[How To Linux Security Tech Solutions]

Configuring Radius Authentication on Linux

  1. Install libpam-radius-auth
    sudo apt-get install libpam-radius-auth
  2. Configure libpam-radius-auth with your radius servers and secrets
    sudo pico /etc/pam_radius_auth.conf
  3. Set permissions on /etc/pam_radius_auth.conf
    sudo chmod 0600 /etc/pam_radius_auth.conf
  4. Add auth sufficient pam_radius_auth.so to /etc/pam.d/login and then the following as desired just above the line reading @include common-auth
    /etc/pam.d/sshd<br /> /etc/pam.d/sudo<br /> /etc/pam.d/su
  5. Add try_first_pass to auth line in /etc/pam.d/common-auth
    auth [success=1 default=ignore] pam_unix.so nullok_secure try_first_pass
  6. Make user locally with disabled password
    sudo useradd -m USERNAME
    or to add a user and add to the sudo group
    sudo useradd -m -G sudo USERNAME

Ta Da!

read more