IT/linux2022. 9. 30. 11:03[linux] Google Authenticator

환경 OS : Ubuntu 20.04 LTS apt install libpam-google-authenticator # 2차 인증 적용할 계정으로 전환 su - ${id} google-authenticator vi /etc/pam.d/sshd # 추가 # google otp auth required pam_google_authenticator.so nullok vi /etc/ssh/sshd_config # 변경 UsePAM yes ChallengeResponseAuthentication Yes systemctl restart sshd # key 조회 가능 cat /home/${user}/.google_authenticator

IT/linux2020. 10. 28. 08:40[linux] vimrc

" Syntax Highlighting if has("syntax") syntax on endif set nu "line set fileencodings=utf8,euc-kr "encodeing set hlsearch "hilight search "set autoindent 들여쓰기 "set cindent set ts=4 set sts=4 set shiftwidth=4 set laststatus=2 set showmatch set smartcase set smarttab "set smartindent set ruler

IT/linux2020. 4. 17. 10:22[CentOS 7] net-tools

ifconfig, netstat 명령어가 작동하지 않을때 : net-tools 미설치 [root@web ~]# rpm -q net-tools package net-tools is not installed [root@web ~]# ifconfig -bash: /sbin/ifconfig: No such file or directory [root@web ~]# netstat -bash: netstat: command not found net-tools 설치 yum -y install net-tools [root@web ~]# netstat Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address Stat..

image