openssh업그레이드 접속 에러가 납니다. openssh.spec파일이 있

jw0717의 이미지

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}

hys545의 이미지

jw0717 wrote:
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}


openssh.spec은 rpm만들때 쓰는겁니다.,
그거는 ssh실향하고는 아무 관계업습니다

즐린

jw0717의 이미지

찾아보니까.. rpm생성할때 쓰는거네요..

sshd란 유저를 만드니까..접속은 이제 되는데

로그인이 안되는군요..패스워드 실패로 나오고..

다시..함 봐야겠슴다..감사..

hys545의 이미지

jw0717 wrote:
찾아보니까.. rpm생성할때 쓰는거네요..

sshd란 유저를 만드니까..접속은 이제 되는데

로그인이 안되는군요..패스워드 실패로 나오고..

다시..함 봐야겠슴다..감사..


원래 sshd란 계정은 로그인 목적으로 만드는게 아닙니다.
sshd에서 내부적으로 쓰는겁니다
그리고 sshd란 게정이 해킹 목적으로도 쓰이기 때문에 대부분 로그인 안되게 막아놓습니다.

즐린

jw0717의 이미지

근데..왜.. 패스워드 실패가 나오는지..-_-;

메시지 보면 그냥 실패로 나오고.

제 생각같아선 /etc/pam.d/sshd 문제 같은데..

/etc/pam.d/sshd 예전거(3.0)로 사용해도 패스워드 실패로 나오고

업그레이드할때 참고하라고 한 3.7.에서의

sshd로 덮어씌우고 해도 실패로나오고 휴...어렵네요..;;

hys545의 이미지

jw0717 wrote:
근데..왜.. 패스워드 실패가 나오는지..-_-;

메시지 보면 그냥 실패로 나오고.

제 생각같아선 /etc/pam.d/sshd 문제 같은데..

/etc/pam.d/sshd 예전거(3.0)로 사용해도 패스워드 실패로 나오고

업그레이드할때 참고하라고 한 3.7.에서의

sshd로 덮어씌우고 해도 실패로나오고 휴...어렵네요..;;


opensshd처ㅣ신 버젼 소스 받아서 컴파일해서 써보세여

즐린

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.