Skip to content

Security and other notes

Jinlian(Sunny) Wang edited this page Apr 24, 2022 · 41 revisions

oAuth

OIDC

SAML

References

Notes:

Steps to configure Public key authentication:-

  • Create an ssh keypair using the “ssh-keygen” command on a Unix box. This generates two files (private key & public key). Public key is the file ending with extension “.pub”
  • Copy the public key to the target machine (the one you want to authenticate to) under $HOME/.ssh/authorized_keys file ($HOME – refers to the home directory of the target user, which is generally “/home/”)
  • Set appropriate permissions (if not already set) for $HOME, $HOME/.ssh and the authorized_keys file on the target server
chown -R ec2-user:ec2-user /home/ec2-user/.ssh
chmod 700 /home/ec2-user/.ssh
chmod 600 /home/ec2-user/.ssh/authorized_keys
  • Connect to the target server from the source machine using ssh and offering the private key with the “-i ” option ssh -i <Path to private key file> <system account name>@<Target Server>
Clone this wiki locally