Using ssh-copy-id along with the ssh-add/ssh-agent
When no value is passed for the option -i and If ~/.ssh/identity.pub is not available, ssh-copy-id will display the following error message.
[continue reading…]
When no value is passed for the option -i and If ~/.ssh/identity.pub is not available, ssh-copy-id will display the following error message.
[continue reading…]
You can login to a remote Linux server without entering password in 3 simple steps using ssky-keygen and ssh-copy-id as explained in this example.
ssh-keygen creates the public and private keys. ssh-copy-id copies the local-host’s public key to the remote-host’s authorized_keys file. ssh-copy-id also assigns proper permission to the remote-host’s home, ~/.ssh, and ~/.ssh/authorized_keys.
[continue reading…]
Specify only the user name.
[continue reading…]
Create a file for swap usage as shown below.
[continue reading…]
Use the tune2fs –l /dev/sda1 to view the filesystem information as shown below.
[continue reading…]
After creating a partition and formatting, you can mount it to a mount point.
[continue reading…]
After partitioning the disks, it is still not ready for usage, as we need to format the disk. At this stage, if you try to view the disk information, it will give the following error message indicating that no valid superblock is present.
[continue reading…]
After you’ve installed brand new disks on your server, you have to use tools like fdisk to partition it accordingly.
[continue reading…]
Sometimes you may not want to clutter your history with basic commands such as pwd and ls. Use HISTIGNORE to specify all the commands that you want to ignore from the history.
Please note that adding ls to the HISTIGNORE ignores only ls and not ls -l. So, you have to provide the exact command that you would like to ignore from the history.
[continue reading…]