 |
 |
|
|
 |
 |
ۼ : 05-10-04 14:50
openssh ġ. OS - solaros 9 |
۾ :
ȸ : 10,963
|
-openssh ? -
openssh telnet , ftp , rlogin , rsh ,rcp üϴ ϰ, ȣȭ Ʈũ Դϴ. OpenSSH SSH protocol ϴ α, internet data ȣȭѼ մϴ. telnet ftp ȣ Ͽ ȣȭ ä մϴ. ߰ ä ȣ ɼ ֽϴ.
ġ
- openssl-0.9.8 , openssh-4.0p1 ,
ٿε
http://www.openssh.org ----- openssh-4.0p1
http://www.openssl.org ----- openssl-0.9.8
http://www.sunfreeware.com ----- zlib
http://www.sunfreeware.com ----- gcc
---------------------------------------------------------------------------------
⺻ ġ .
- zlib : zip gzip ǰ ִ ˷θ ̺귯ȭ Դϴ.zip
ϰų ݰ ....
- libgcc : gcc ̺귯 .
- gcc : Ϸ....
- openssl : OpenSSL ȣ̷ SSL PKI ְ
ؼ Ʈ ̷ ִ ȣ Դϴ.
- ҽ ġ error ؿ Ȯ Ͻñ ٶϴ. ġ
鼭 Դ ַ ϴ.
---------------------------------------------------------------------------------
- openssl ġ -
(test>root)/data# gunzip openssl-0.9.8.tar.gz
(test>root)/data# tar xvf openssl-0.9.8.tar
(test>root)/data/openssl-0.9.6# ./config --prefix=/usr/local/openssl
(test>root)/data/openssl-0.9.8#make
(test>root)/data/openssl-0.9.8#make install
---------------------------------------------------------------------------------
- openssh ġ -
(test>root)/# cd /data
(test>root)/data# gunzip openssh-4.0p1.tar.gz
(test>root)/data# tar xvf openssh-4.0p1.tar
(test>root)/data# cd openssh-4.0p1
(test>root)/data/openssh-4.0p1# ./configure --prefix=/usr/local/openssh --with-ssl-dir=/usr/local/ssl/ --with-tcp-wrappers --with-pam --with-md5-passwords
--prefix : ġ .....
--with-ssl-dir= : ssl ġ 丮
--with-tcp-wrappers ---
--with-pam ---
--with-md5-passwords --- (ؽ ˰̶ մϴ.MD5 Է
ϳ )κ 128 Ʈ ν
Ἲ ϴµ Ǵ ˰̴.MD5 ˰ MD4 Ȯε, MD
4 ӵ , ȼ ־ Ȯ մϴ.)
- openssh ġÿ ⺻ openssl ġ Ǿ ˴ϴ.
openssh openssl ġ ϰ ......
(test>root)/data/openssh-4.0p1# ./configure --prefix=/usr/local/openssh --with-ssl-dir=/usr/local/ssl/
----ġ .
OpenSSH has been configured with the following options:
User binaries: /usr/local/openssh/bin
System binaries: /usr/local/openssh/sbin
Configuration files: /usr/local/openssh/etc
Askpass program: /usr/local/openssh/libexec/ssh-askpass
Manual pages: /usr/local/openssh/man/manX
PID file: /var/run
Privilege separation chroot path: /var/empty
sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/openssh/bin
(If PATH is set in /etc/default/login it will be used instead. If
used, ensure the path to scp is present, otherwise scp will not work.)
Manpage format: man
PAM support: yes
KerberosV support: no
Smartcard support: no
S/KEY support: no
TCP Wrappers support: yes
MD5 password support: yes
IP address in $DISPLAY hack: no
Translate v4 in v6 hack: no
BSD Auth support: no
Random number source: OpenSSL internal ONLY
Host: sparc-sun-solaris2.9
Compiler: gcc
Compiler flags: -g -O2 -Wall -Wpointer-arith -Wno-uninitialized
Preprocessor flags: -I/usr/loca/openssl/include
Linker flags: -L/usr/loca/openssl/lib -R/usr/loca/openssl/lib
Libraries: -lwrap -lpam -ldl -lresolv -lcrypto -lrt -lz -lsocket -lnsl
SVR4 style packages are supported with "make package"\n
PAM is enabled. You may need to install a PAM control file
for sshd, otherwise password authentication may fail.
Example PAM control files can be found in the contrib/
subdirectory
WARNING: the operating system that you are using does not
appear to support either the getpeereid() API nor the
SO_PEERCRED getsockopt() option. These facilities are used to
enforce security checks to prevent unauthorised connections to
ssh-agent. Their absence increases the risk that a malicious
user can connect to your agent.
(test>root)/data/openssh-3.9p1#
---------------------------------------------------------------------------------
- ġ -
1. make install error code 255
-- --
cb:01:54:fd:5e:e5:b6:12:e4:b1:4d:ef:3d:a2:b7:15 root@test
/usr/local/openssh/sbin/sshd -t -f /usr/local/openssh/etc/sshd_config
Privilege separation user sshd does not exist
*** Error code 255 (ignored)
Privilege separation user sshd does not exist <=== user group ..
(test>root)/data/openssh-4.0p1# groupadd sshd
(test>root)/data/openssh-4.0p1# useradd -g sshd sshd
(test>root)/data/openssh-4.0p1#
2. sshd localhost test remote host error
ssh_exchange_identification: Connection closed by remote host
--- tcp_wrapper 쿡 Ÿ ϴ.
(test>root)/data/openssh-4.0p1#vi /etc/hosts.allow
sshd:ALL ߰.....
wq!
3.openssh ġ make error
ǵ ù°
ȣ :
dlsym /usr/loca/openssl/lib/libcrypto.a(dso_dlfcn.o) (Ͻ /usr/lib/libdl.so.1 ȣ)
dlopen /usr/loca/openssl/lib/libcrypto.a(dso_dlfcn.o) (Ͻ /usr/lib/libdl.so.1 ȣ)
dlclose /usr/loca/openssl/lib/libcrypto.a(dso_dlfcn.o) (Ͻ /usr/lib/libdl.so.1 ȣ)
dlerror /usr/loca/openssl/lib/libcrypto.a(dso_dlfcn.o) (Ͻ /usr/lib/libdl.so.1 ȣ)
ld: ġ: ȣ . ssh ϵ
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `ssh'
Ÿ ġ ִ ġϿ 䱸ϴ
ֽϴ.
OpenSSH INSTALL README ø
ġϴµ ʿ 䱸 ϵǾ ֽϴ.
OpenSSH ʿ OpenSSL ٸ
䱸 ´ OpenSSL ġϿ ּž մϴ.
ʿ 䱸 ϰ ִ Ȯ
Ͻ Ŀ ġϼž մϴ.
4.openssl ġ .....
tar Ǯ Configure ϰ config ֽϴ. ΰ
߸...
./Configure solaris-sparcv9-gcc no-idea no-mdc2 no-rc5 no-md2 --prefix=/usr/local/ssl --openssldir=/usr/local/ssl
---------------------------------------------------------------------------------
|
|
|
Total
185
|
|
|
 |
|
|
|
|