Tag Archives: linux

Replace disk on failed linux software raid

With command: cat /proc/mdstat chech which disk is failed poweroff machine, replace disk copy partittion data from old to new disk sfdisk -d /dev/sdb | sfdisk /dev/sda add disk partition do raid mdadm –manage /dev/md0 –add /dev/sda1 mdadm –manage /dev/md1 … Continue reading

Posted in Debian, HW issue, Linux tips, Mint, Ubuntu | Tagged , , , | Leave a comment

ssh key authentication

How to generate SSH keys and implement for key authentication. login to local machine with user you will be using for connect to remote. 1. generate keys: ssh-keygen -t dsa 2. copy id_dsa.pub to remote machine to /tmp directory scp … Continue reading

Posted in Linux tips | Tagged , , | 2 Comments