1.Let’s setup CentOS7.5 server. Contains : ssh login,Promp, Partition, General user account
1.Setup Auto SnapShot of disk
2.Set SSH key login
2.1.Add id_rsa.pub SSH Key on cloud Control
2.2.Add correct host key in user/.ssh/known_hosts
1 | ssh-keygen -R xxx.xxx.xxx.xxx |
2.3. Disable passwd login
1 | vi /etc/ssh/sshd_config |
3.4.Changed ip for domain may cause error
1 | The ECDSA host key for www.heavenyu.com has changed, |
3.Terminal
3.1.Set Promp
1 | vi .bashrc |
add
1 | export PS1='[\t \W]\$' |
to the end of the ~/.bashrc
1 | source .bashrc |
we got this prompt:
1 | [22:40:00 ~]# |
3.2.Vim
1 | vi /etc/vimrc |
4.Partition
1 | fdisk -l |
5.Create general user account
1 | add general user |