openssl req -nodes -new -keyout server.key -out server.cert
The -nodes option tells openssl not to use DES to encrypt the key.
For a self-signed certificate:
openssl req -nodes -new -x509 -keyout server.key
openssl req -nodes -new -keyout server.key -out server.cert
openssl req -nodes -new -x509 -keyout server.key
SELECT id, employee_id, effective_on, 'not in table2' AS note FROM table1 EXCEPT SELECT id, employee_id, effective_on, 'not in table2' AS note FROM table2;
Layer upon layer of abstraction can complicate this procedure. The common case is that a logical volume is running out of space and needs to be expanded. This can all be done non-destructively and while the volume is in use. It can be expanded by adding a SCSI disk within VMWare or by increasing the size of an existing SCSI disk in VMware. There may be some SAN level commands required first, and those will vary by the kind of SAN connected to VMWare. This specific recipe is based on first increasing the size of an existing SCSI disk in VMWare.
Initially, Linux will not see any changes in the disk configuration. To see all the SCSI devices the system knows about, run:
ls /sys/class/scsi_device/
0:0:0:0 0:0:1:0 0:0:2:0
Once the expanded disk is identified, enable a rescan on the device:
echo 1 > /sys/class/scsi_device/0\:0\:2\:0/device/rescan
Then, run pvdisplay to make sure the physical volume shows the new size. Also, note in the output which volume group the physical volume is assigned to for the next step.
vgdisplay volume-group-name
Check to verify the volume group now has free space.
Run the following command (replacing the logical-volume with the correct name) to expand the logical volume using ALL available free space in the volume group. If that's not what you want, check the syntax of lvexpand to add the amount of space you want to use.
lvextend -l +100%FREE logical-volume
Ext3/4 and XFS filesystems can be expanded
resize2fs /dev/mapper/vg-name/lv-name
OR
xfs_growfs /dev/mapper/vg-name/lv-name
pdftk pdf-file dump_data_fields
ssh-keygen -t rsa -b 4096
Private keys must be readable only by the user or SSH will ignore it for safety. Also, the .ssh directory must be readable only by the user.
ssh-copy-id -i id_rsa.pub user@server
/etc/ssh/sshd_config
PermitRootLogin noAllowUsers neo trinityAuthorizedKeysFile .ssh/authorized_keys