openssh업그레이드 접속 에러가 납니다. openssh.spec파일이 있
ssh 3.0 에서 3.7로 업그레이드 할때 ssh를 재시작하니까
/var/log/message에
Privilege separation user sshd does not exist
make: [check-config] Error 255 (ignored)
이와 같은 에러가 났습니다. 그리고 접속이 안됬구요.
그래서 소스 디렉토리를 다뒤져보니까.
openssh.spec 란 파일이있고.
그 파일내용을 보니까 ******* 한 부분이 눈에 띄었습니다.
근데.. 이 파일을 가지고 어떻게 해야할지 모르겠네요
이 내용을 보니 message내용과 맞는거 같은데..
보통. *.spec파일을 가지고 어떻게 처리하는지요... 패치 파일도 아닌거 같은
데...
************************************************************
# OpenSSH privilege separation requires a user & group ID
%define sshd_uid 74
%define sshd_gid 74
*************************************************************
%define ver 3.7.1p2
%define rel 1
# OpenSSH privilege separation requires a user & group ID
%define sshd_uid 74
%define sshd_gid 74
# Version of ssh-askpass
%define aversion 1.2.4.1
# Do we want to disable building of x11-askpass? (1=yes 0=no)
%define no_x11_askpass 0
# Do we want to disable building of gnome-askpass? (1=yes 0=no)
%define no_gnome_askpass 0
# Do we want to link against a static libcrypto? (1=yes 0=no)
%define static_libcrypto 0
# Do we want smartcard support (1=yes 0=no)
%define scard 0
# Use GTK2 instead of GNOME in gnome-ssh-askpass
%define gtk2 1
# Is this build for RHL 6.x?
%define build6x 0
# Do we want kerberos5 support (1=yes 0=no)
%define kerberos5 1
# Reserve options to override askpass settings with:
# rpm -ba|--rebuild --define 'skip_xxx 1'
%{?skip_x11_askpass:%define no_x11_askpass 1}
%{?skip_gnome_askpass:%define no_gnome_askpass 1}
# Is this a build for RHL 6.x or earlier?
%{?build_6x:%define build6x 1}
# If this is RHL 6.x, the default configuration has sysconfdir
in /usr/etc.
%if %{build6x}
%define _sysconfdir /etc
%endif
# Options for static OpenSSL link:
# rpm -ba|--rebuild --define "static_openssl 1"
%{?static_openssl:%define static_libcrypto 1}
# Options for Smartcard support: (needs libsectok and openssl-engine)
# rpm -ba|--rebuild --define "smartcard 1"
%{?smartcard:%define scard 1}
Re: openssh업그레이드 접속 에러가 납니다. openssh.spec파일이
openssh.spec은 rpm만들때 쓰는겁니다.,
그거는 ssh실향하고는 아무 관계업습니다
즐린
그렇군요..-_-;;
찾아보니까.. rpm생성할때 쓰는거네요..
sshd란 유저를 만드니까..접속은 이제 되는데
로그인이 안되는군요..패스워드 실패로 나오고..
다시..함 봐야겠슴다..감사..
Re: 그렇군요..-_-;;
원래 sshd란 계정은 로그인 목적으로 만드는게 아닙니다.
sshd에서 내부적으로 쓰는겁니다
그리고 sshd란 게정이 해킹 목적으로도 쓰이기 때문에 대부분 로그인 안되게 막아놓습니다.
즐린
네 sshd는 내부적으로 쓰이는거 같은데요..
근데..왜.. 패스워드 실패가 나오는지..-_-;
메시지 보면 그냥 실패로 나오고.
제 생각같아선 /etc/pam.d/sshd 문제 같은데..
/etc/pam.d/sshd 예전거(3.0)로 사용해도 패스워드 실패로 나오고
업그레이드할때 참고하라고 한 3.7.에서의
sshd로 덮어씌우고 해도 실패로나오고 휴...어렵네요..;;
Re: 네 sshd는 내부적으로 쓰이는거 같은데요..
opensshd처ㅣ신 버젼 소스 받아서 컴파일해서 써보세여
즐린
댓글 달기