Difference between revisions of "OpenSSH"
From CBLFS
Jump to navigationJump to searchm (Added some missing &&'s to OpenSSH) |
|||
Line 21: | Line 21: | ||
* [[OpenSC]] | * [[OpenSC]] | ||
* [[libsectok]] | * [[libsectok]] | ||
+ | |||
+ | == OpenSSH User/Group & PrivSep Dir == | ||
+ | |||
+ | groupadd -g 50 sshd && | ||
+ | useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd -s /bin/false -u 50 sshd && | ||
+ | install -v -m700 -d /var/lib/sshd && | ||
+ | chown -v root:sys /var/lib/sshd | ||
== Non-Multilib == | == Non-Multilib == | ||
Line 26: | Line 33: | ||
Compile the package: | Compile the package: | ||
− | |||
− | |||
− | |||
− | |||
./configure --prefix=/usr --sysconfdir=/etc/ssh \ | ./configure --prefix=/usr --sysconfdir=/etc/ssh \ | ||
--libexecdir=/usr/sbin --with-md5-passwords \ | --libexecdir=/usr/sbin --with-md5-passwords \ | ||
Line 49: | Line 52: | ||
Compile the package: | Compile the package: | ||
− | |||
− | |||
− | |||
− | |||
CC="gcc ${BUILD32}" ./configure --prefix=/usr --sysconfdir=/etc/ssh \ | CC="gcc ${BUILD32}" ./configure --prefix=/usr --sysconfdir=/etc/ssh \ | ||
--libexecdir=/usr/sbin --with-md5-passwords \ | --libexecdir=/usr/sbin --with-md5-passwords \ | ||
Line 69: | Line 68: | ||
Compile the package: | Compile the package: | ||
− | + | install -v -m700 -d /var/lib/sshd && | |
− | + | chown -v root:sys /var/lib/sshd && | |
− | install -v -m700 -d /var/ | ||
− | chown -v root:sys /var/ | ||
CC="gcc ${BUILDN32} ./configure --prefix=/usr --sysconfdir=/etc/ssh \ | CC="gcc ${BUILDN32} ./configure --prefix=/usr --sysconfdir=/etc/ssh \ | ||
--libexecdir=/usr/sbin --libdir=/usr/lib32 --with-md5-passwords \ | --libexecdir=/usr/sbin --libdir=/usr/lib32 --with-md5-passwords \ | ||
− | --with-privsep-path=/var/ | + | --with-privsep-path=/var/lib/ssh && |
make | make | ||
Line 89: | Line 86: | ||
Compile the package | Compile the package | ||
− | |||
− | |||
− | |||
− | |||
CC="gcc ${BUILD64}" ./configure --prefix=/usr --sysconfdir=/etc/ssh \ | CC="gcc ${BUILD64}" ./configure --prefix=/usr --sysconfdir=/etc/ssh \ | ||
--libexecdir=/usr/sbin --with-md5-passwords \ | --libexecdir=/usr/sbin --with-md5-passwords \ | ||
− | --with-privsep-path=/var/ | + | --with-privsep-path=/var/lib/ssh && |
make | make | ||
Revision as of 06:59, 7 October 2006
Download Source: | http://sunsite.ualberta.ca/pub/OpenBSD/OpenSSH/portable/openssh-4.3p2.tar.gz |
---|
Contents
Dependencies
Required
Optional
OpenSSH User/Group & PrivSep Dir
groupadd -g 50 sshd && useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd -s /bin/false -u 50 sshd && install -v -m700 -d /var/lib/sshd && chown -v root:sys /var/lib/sshd
Non-Multilib
Compile the package:
./configure --prefix=/usr --sysconfdir=/etc/ssh \ --libexecdir=/usr/sbin --with-md5-passwords \ --with-privsep-path=/var/lib/ssh && make
Install the package
make install && install -v -m755 -d /usr/share/doc/openssh-4.3p2 && install -v -m644 INSTALL LICENCE OVERVIEW README* WARNING.RNG \ /usr/share/doc/openssh-4.3p2
Multilib
This package does not provide any libraries so only one installation is needed.
32Bit
Compile the package:
CC="gcc ${BUILD32}" ./configure --prefix=/usr --sysconfdir=/etc/ssh \ --libexecdir=/usr/sbin --with-md5-passwords \ --with-privsep-path=/var/lib/ssh && make
Install the package
make install && install -v -m755 -d /usr/share/doc/openssh-4.3p2 && install -v -m644 INSTALL LICENCE OVERVIEW README* WARNING.RNG \ /usr/share/doc/openssh-4.3p2
N32
Compile the package:
install -v -m700 -d /var/lib/sshd && chown -v root:sys /var/lib/sshd && CC="gcc ${BUILDN32} ./configure --prefix=/usr --sysconfdir=/etc/ssh \ --libexecdir=/usr/sbin --libdir=/usr/lib32 --with-md5-passwords \ --with-privsep-path=/var/lib/ssh && make
Install the package
make install && install -v -m755 -d /usr/share/doc/openssh-4.3p2 && install -v -m644 INSTALL LICENCE OVERVIEW README* WARNING.RNG \ /usr/share/doc/openssh-4.3p2
64Bit
Compile the package
CC="gcc ${BUILD64}" ./configure --prefix=/usr --sysconfdir=/etc/ssh \ --libexecdir=/usr/sbin --with-md5-passwords \ --with-privsep-path=/var/lib/ssh && make
Install the package
make install && install -v -m755 -d /usr/share/doc/openssh-4.3p2 && install -v -m644 INSTALL LICENCE OVERVIEW README* WARNING.RNG \ /usr/share/doc/openssh-4.3p2
Configuring
BootScript
Install the init script included in the blfs-bootscripts package.
make install-sshd