Home > Articles > Security > Network Security

  • Print
  • + Share This
Like this article? We recommend

Packaging OpenSSH

The makeOpenSSHPackage.ksh script creates a Solaris OS package. It takes the OpenSSH executables, configuration files, documentation, and optionally, PRNGD's executables and configuration files, and creates the OBSDssh package. The script will need some editing based on your local environment. The makeOpenSSHPackage.ksh script configures openssh.server (the provided init script) based on the configuration of makeOpenSSHPackage.ksh. The init script is included in the generated package. The secureshell-tools.tar.Z file containing an init script and a packaging script is available from Sun BluePrints Online, Scripts and Tools page at:

http://www.sun.com/solutions/blueprints/tools/index.html

The makeOpenSSHPackage.ksh script uses the following files as the default configuration files for the OpenSSH installation:

  • sshd_config.out

  • ssh_config.out

Place your local configuration into these files before generating the package.

The OBSDssh package does not generate host keys at install-time. Keys are generated at first boot. This is to prevent WebStart Flash installed hosts from having duplicate host keys.

To Generate the OBSDssh Package

  1. Use the cp(1) command to copy the makeOpenSSHPackage.ksh script to the openssh-x.xpx directory.

  2. $ cp makeOpenSSHPackage.ksh openssh-x.xpx
  3. Copy openssh.server to the parent directory of openssh-x.xpx.

  4. $ cp openssh.server .
  5. Change the directory to the openssh-x.xpx directory.

  6. $ cd openssh-x.xpx

  7. Use the ksh(1) command to make the package.

  8. $ ksh ./makeOpenSSHPackage.ksh
  9. Verify the presence of the package.

  10. $ ls *pkg
    OBSDssh.pkg

  • + Share This
  • 🔖 Save To Your Account