SSH is referred to as Secure Shell, it is a cryptographic secure protocol which is used to connect to servers to login and make changes as per requirement. This is the most usable tool and protocol to connect to Linux and UNIX servers and is used widely by Linux Administatrators.
Connecting to Linux Server : –
##cd /Users/owner/aws-infra
cd /u01/userhome/Documents/aws-infra
ssh -i techspemfileforaccount.pem [email protected]
Below Example for LVM Management
:
fdisk /dev/sdc, then type n (new volume creation), then type p for primary volume or e for extended volume, press enter, press enter again to accept the default start sectors, next you can accept default value to end the sectors on give a storage value you want to allocate to the disk partition, for example - +50G for allocating 50 GB, then press enter
Now next press t to declare the partion TYPE, enter 8e for LVM and press enter, now type w to write the changes
Next is now to create the LVM for this newly created disk partion name - /dev/sdc1
groupadd techvolg
useradd -g techvolg -G admins techsuser01
passwd techsuser01
fdisk -l
fdisk /dev/sdc
pvcreate /dev/sdc1
vgcreate techstoolsvg /dev/sdc1
lvcreate -L 61G -n techstoolslv techstoolsvg
mkfs -t ext4 /dev/mapper/techstoolsvg-techstoolslv
history|tail -n 15