Linux 472

ssh 무인증 에러 발생시.

# ssh -vvv root@192.168.0.2 위와 같이 접속하는 서버버에서 클라이언트에 접속 시도 # tail -f /var/log/secure 클라이언트에 로그 확인 Authentication refused: bad ownership or modes for directory /root 라고 뜨면 # vi /etc/ssh/sshd_config StrictModes no 로 수정 그리고 RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys # service sshd restart # chmod g-w /root # chmod 700 /root/.ssh # chmod 600 /root/.ssh/auth..

Linux 2019.11.11

google-authenticator ssh otp 적용[google otp]

구글 otp 프로그램 설치centos 기준 # yum install pam-devel gcc autoconf automake libtool -y# yum install epel-release -y# yum install google-authenticator -y # google-authenticator -t -d  --label webserver --issuer 장비ID -r 3 -R 30 -s ~/.ssh/google_authenticator Warning: pasting the following URL into your browser exposes the OTP secret to Google:   https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&c..

Linux 2019.09.05

mount: wrong fs type, bad option, bad superblock on /data

root@test:/mnt# mount /mnt/VideoIP/ mount: wrong fs type, bad option, bad superblock on 192.168.0.2:/data/, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program) In some cases useful info is found in syslog - try dmesg | tail or so. 위와 같이 메세지가 뜬다면 # yum install nfs-utils or # apt-get install nfs-common 설치 하면 된다.

Linux 2019.09.03
728x90
320x100