Password-less authentication using public/private key pair Create public/private key pair Default is RSA key pair for use with SSH v2 It is created in .ssh/ in home directory Files created are id_rsa (private key file) and id_rsa.pub (public key file) Copy public key to remote server .ssh/authorized_keys file .ssh/ is in the home directory of […]
Monthly Archives: November 2014
Tutorial: Encrypted drive
Coming soon…
Tools 101: cryptsetup
Create a LUKS (Linux Unified Key Setup) formated, encrypted device: cryptsetup –verbose –verify-passphrase luksFormat /dev/sdb1 Display encrypted device info: cryptsetup luksDump /dev/sdb1 Open (unlock) encrypted device cryptsetup open –type luks /dev/sdb1 crypt Close (lock) encrypted device cryptsetup close –type luks crypt Add pass-phrase from key_file, total of eight are allowed cryptsetup luksAddKey /dev/sdb1 /home/xyz/key_file Remove […]
Tools 101: dd
Fill a device with zeros dd if=/dev/zero of=/dev/sdb Fill a device with 1024*10240 bytes of zeros dd if=/dev/zero of=/dev/sdb count=10240 bs=1024 Create a random key file: dd if=/dev/urandom of=key_file bs=1024 count=4 iflag=fullblock