<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: secure shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635851#M42400</link>
    <description>Hi,&lt;BR /&gt;Have a look at this doc..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  How to Install and Configure Openssh (simple method)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pre-requisite: You must install a product called 'zlib' prior to attempting to install 'openssh' or the installation will fail. &lt;BR /&gt;both 'zlib' and 'openssh' are available from the porting centre. &lt;A href="http://hpux.connect.org.uk/" target="_blank"&gt;http://hpux.connect.org.uk/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Run the 'swinstall' interactive program to install the 'zlib' filesets. Once installed the following files need to be copied:&lt;BR /&gt;&lt;BR /&gt;# cp /opt/zlib/include/zlib.h /usr/include&lt;BR /&gt;# cp /opt/zlib/include/zconf.h /usr/include&lt;BR /&gt;# cp /opt/zlib/lib/libz.a /usr/lib&lt;BR /&gt;&lt;BR /&gt;Run the 'swinstall' interactive program to install 'openssh'. &lt;BR /&gt;&lt;BR /&gt;Once the two products have been installed a small amount of configuration will still be necessary.&lt;BR /&gt;&lt;BR /&gt;# /opt/openssh2/bin/ssh-keygen -t rsa1 -f /opt/openssh2/etc/ssh_host_key -N ""&lt;BR /&gt;# /opt/openssh2/bin/ssh-keygen -t rsa -f /opt/openssh2/etc/ssh_host_rsa_key -N ""&lt;BR /&gt;# /opt/openssh2/bin/ssh-keygen -t dsa -f /opt/openssh2/etc/ssh_host_dsa_key -N ""&lt;BR /&gt;&lt;BR /&gt;Start the background daemon on the local host to make sure that the keys have been generated successfully.&lt;BR /&gt;&lt;BR /&gt;# /opt/openssh2/sbin/sshd &amp;amp;&lt;BR /&gt;&lt;BR /&gt;To set up the automatic startup of 'sshd' after each reboot, get a copy of these files from the source&lt;BR /&gt;download from &lt;A href="http://www.openssh.org" target="_blank"&gt;http://www.openssh.org&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;# cp /home/openssh_config/sshd.rc /sbin/init.d&lt;BR /&gt;# cp /home/openssh_config/sshd /etc/rc.config.d&lt;BR /&gt;&lt;BR /&gt;# ln -s /sbin/init.d/sshd.rc /sbin/rc2.d/S110sshd&lt;BR /&gt;# ln -s /sbin/init.d/sshd.rc /sbin/rc1.d/K890sshd&lt;BR /&gt;&lt;BR /&gt;As your own user id generate a key for 'ssh' from you own home directory:&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;$ cd /home/myuser&lt;BR /&gt;$ /opt/openssh2/bin/ssh-keygen&lt;BR /&gt;Enter file and press return (/home/myuser/.ssh/identity)&lt;BR /&gt;Enter Passphrase (not required, just press return)&lt;BR /&gt;&lt;BR /&gt;Make a directory on the server at the other end to contain the authority key. This file is the same as just generated as your own user id except that is must be called /home/myuser/.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;Before this key will work, the destination server also needs to have the 'zlib' and 'openssh' filesets installed and the 'sshd' daemon running as per the above procedures.&lt;BR /&gt;</description>
    <pubDate>Thu, 27 Dec 2001 14:35:54 GMT</pubDate>
    <dc:creator>Uday_S_Ankolekar</dc:creator>
    <dc:date>2001-12-27T14:35:54Z</dc:date>
    <item>
      <title>secure shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635847#M42396</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I installed secure shell from the &lt;A href="http://hpux.connect.org.uk/" target="_blank"&gt;http://hpux.connect.org.uk/&lt;/A&gt; and the installation went fine.&lt;BR /&gt;But I'm stuck there. The configuration are not clear. How do I configure the ssh on the server ?&lt;BR /&gt;btw, my server is on hp-ux 10.20 &lt;BR /&gt;&lt;BR /&gt;I tried starting the ssh by issuing a /opt/openssh2/sbin/sshd start but it threw an error " couldn't read entropy commands file /opt/openssh2/etc/ssh_prng_cmds: No such file or directory"  &lt;BR /&gt;I'm totally lost . Would really appreciate some help. Thanx in advance.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Ramesh&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Dec 2001 13:06:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635847#M42396</guid>
      <dc:creator>Ramesh_1</dc:creator>
      <dc:date>2001-12-27T13:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: secure shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635848#M42397</link>
      <description>Ramesh,&lt;BR /&gt;&lt;BR /&gt;Below is my /sbin/init.d/sshd script for starting secure shell. You call it just like any other startup script. You will need to also create a /etc/rc.config.d/sshd file with a 0 and 1 toggle. As far as configuration goes, /opt/openssh2/etc/sshd.conf is the file you want to look at. I would get O'Reily's SSH book, it has a lot of great info about ssh.  This forum is not big enough to tell all about configuring ssh. If there is a specific configuration question please let us know.&lt;BR /&gt;&lt;BR /&gt;HH,&lt;BR /&gt;C&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PATH=/usr/sbin:/usr/bin:/sbin&lt;BR /&gt;export PATH&lt;BR /&gt;&lt;BR /&gt;# NOTE: If your script executes in run state 0 or state 1, then /usr might&lt;BR /&gt;#       not be available.  Do not attempt to access commands or files in&lt;BR /&gt;#       /usr unless your script executes in run state 2 or greater.  Other&lt;BR /&gt;#       file systems typically not mounted until run state 2 include /var&lt;BR /&gt;#       and /opt.&lt;BR /&gt;&lt;BR /&gt;rval=0&lt;BR /&gt;&lt;BR /&gt;# Check the exit value of a command run by this script.  If non-zero, the&lt;BR /&gt;# exit code is echoed to the log file and the return value of this script&lt;BR /&gt;# is set to indicate failure.&lt;BR /&gt;&lt;BR /&gt;set_return() {&lt;BR /&gt;        x=$?&lt;BR /&gt;        if [ $x -ne 0 ]; then&lt;BR /&gt;                echo "EXIT CODE: $x"&lt;BR /&gt;                rval=1  # script FAILed&lt;BR /&gt;        fi&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;case $1 in&lt;BR /&gt;'start_msg')&lt;BR /&gt;        # Emit a _short_ message relating to running this script with&lt;BR /&gt;        # the "start" argument; this message appears as part of the checklist.&lt;BR /&gt;        # the following line was the standard line. replaced by the next line.&lt;BR /&gt;        # echo "Starting the &lt;SPECIFIC&gt; subsystem"&lt;BR /&gt;        echo "Starting the Secure Shell Daemon"&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;'stop_msg')&lt;BR /&gt;        # Emit a _short_ message relating to running this script with&lt;BR /&gt;        # the "stop" argument; this message appears as part of the checklist.&lt;BR /&gt;        # echo "Stopping the &lt;SPECIFIC&gt; subsystem"&lt;BR /&gt;        echo "Stopping the Secure Shell Daemon"&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;'start')&lt;BR /&gt;&lt;BR /&gt;        # source the system configuration variables&lt;BR /&gt;if [ -f /etc/rc.config.d/sshd ] ; then&lt;BR /&gt;                . /etc/rc.config.d/sshd&lt;BR /&gt;        else&lt;BR /&gt;                echo "ERROR: /etc/rc.config.d/sshd defaults file MISSING"&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;        # Check to see if this script is allowed to run...&lt;BR /&gt;        if [ $SSHD != 1 ]; then&lt;BR /&gt;                rval=2&lt;BR /&gt;        else&lt;BR /&gt;           echo "Starting Secure Shell Daemon"&lt;BR /&gt;           /opt/openssh2/sbin/sshd&lt;BR /&gt;           set_return&lt;BR /&gt;        fi&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;'stop')&lt;BR /&gt;        # source the system configuration variables&lt;BR /&gt;        if [ -f /etc/rc.config.d/sshd ] ; then&lt;BR /&gt;                . /etc/rc.config.d/sshd&lt;BR /&gt;        else&lt;BR /&gt;                echo "ERROR: /etc/rc.config.d/sshd defaults file MISSING"&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;        # Check to see if this script is allowed to run...&lt;BR /&gt;        if [ $SSHD != 1 ]; then&lt;BR /&gt;                rval=2&lt;BR /&gt;        else&lt;BR /&gt;           echo "Stopping Secure Shell Daemon"&lt;BR /&gt;           KSSH=`cat /var/run/sshd.pid`&lt;BR /&gt;           kill -9 $KSSH&lt;BR /&gt;           set_return&lt;BR /&gt;        :&lt;BR /&gt;        # Execute the commands to stop your subsystem&lt;BR /&gt;&lt;BR /&gt;        fi&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;*)&lt;BR /&gt;        echo "usage: $0 {start|stop}"&lt;BR /&gt;        rval=1&lt;BR /&gt;        ;;&lt;BR /&gt;esac&lt;BR /&gt;&lt;BR /&gt;exit $rval&lt;BR /&gt;&lt;/SPECIFIC&gt;&lt;/SPECIFIC&gt;</description>
      <pubDate>Thu, 27 Dec 2001 14:15:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635848#M42397</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-12-27T14:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: secure shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635849#M42398</link>
      <description>did you configure the keys?&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;# /opt/openssh2/bin/ssh-keygen -t rsa1 -f /opt/openssh2/etc/ssh_host_key -N ""&lt;BR /&gt;# /opt/openssh2/bin/ssh-keygen -t rsa -f /opt/openssh2/etc/ssh_host_rsa_key -N ""&lt;BR /&gt;# /opt/openssh2/bin/ssh-keygen -t dsa -f /opt/openssh2/etc/ssh_host_dsa_key -N ""&lt;BR /&gt;&lt;BR /&gt;Start the background daemon on the local host to make sure that the keys have been generated successfully.&lt;BR /&gt;&lt;BR /&gt;# /opt/openssh2/sbin/sshd &amp;amp;&lt;BR /&gt;&lt;BR /&gt;To set up the automatic startup of 'sshd' after each reboot, get a copy of these files from the source&lt;BR /&gt;download from &lt;A href="http://www.openssh.org" target="_blank"&gt;http://www.openssh.org&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;# cp /home/openssh_config/sshd.rc /sbin/init.d&lt;BR /&gt;# cp /home/openssh_config/sshd /etc/rc.config.d&lt;BR /&gt;&lt;BR /&gt;# ln -s /sbin/init.d/sshd.rc /sbin/rc2.d/S110sshd&lt;BR /&gt;# ln -s /sbin/init.d/sshd.rc /sbin/rc1.d/K890sshd&lt;BR /&gt;&lt;BR /&gt;As your own user id generate a key for 'ssh' from you own home directory:&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;$ cd /home/myuser&lt;BR /&gt;$ /opt/openssh2/bin/ssh-keygen&lt;BR /&gt;Enter file and press return (/home/myuser/.ssh/identity)&lt;BR /&gt;Enter Passphrase (not required, just press return)&lt;BR /&gt;&lt;BR /&gt;Make a directory on the server at the other end to contain the authority key. This file is the same as just generated as your own user id except that is must be called /home/myuser/.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;Before this key will work, the destination server also needs to have the 'zlib' and 'openssh' filesets installed and the 'sshd' daemon running as per the above procedures.&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Thu, 27 Dec 2001 14:32:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635849#M42398</guid>
      <dc:creator>Jeff Machols</dc:creator>
      <dc:date>2001-12-27T14:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: secure shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635850#M42399</link>
      <description>You did install zlib, correct?</description>
      <pubDate>Thu, 27 Dec 2001 14:32:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635850#M42399</guid>
      <dc:creator>Jeff Machols</dc:creator>
      <dc:date>2001-12-27T14:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: secure shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635851#M42400</link>
      <description>Hi,&lt;BR /&gt;Have a look at this doc..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  How to Install and Configure Openssh (simple method)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pre-requisite: You must install a product called 'zlib' prior to attempting to install 'openssh' or the installation will fail. &lt;BR /&gt;both 'zlib' and 'openssh' are available from the porting centre. &lt;A href="http://hpux.connect.org.uk/" target="_blank"&gt;http://hpux.connect.org.uk/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Run the 'swinstall' interactive program to install the 'zlib' filesets. Once installed the following files need to be copied:&lt;BR /&gt;&lt;BR /&gt;# cp /opt/zlib/include/zlib.h /usr/include&lt;BR /&gt;# cp /opt/zlib/include/zconf.h /usr/include&lt;BR /&gt;# cp /opt/zlib/lib/libz.a /usr/lib&lt;BR /&gt;&lt;BR /&gt;Run the 'swinstall' interactive program to install 'openssh'. &lt;BR /&gt;&lt;BR /&gt;Once the two products have been installed a small amount of configuration will still be necessary.&lt;BR /&gt;&lt;BR /&gt;# /opt/openssh2/bin/ssh-keygen -t rsa1 -f /opt/openssh2/etc/ssh_host_key -N ""&lt;BR /&gt;# /opt/openssh2/bin/ssh-keygen -t rsa -f /opt/openssh2/etc/ssh_host_rsa_key -N ""&lt;BR /&gt;# /opt/openssh2/bin/ssh-keygen -t dsa -f /opt/openssh2/etc/ssh_host_dsa_key -N ""&lt;BR /&gt;&lt;BR /&gt;Start the background daemon on the local host to make sure that the keys have been generated successfully.&lt;BR /&gt;&lt;BR /&gt;# /opt/openssh2/sbin/sshd &amp;amp;&lt;BR /&gt;&lt;BR /&gt;To set up the automatic startup of 'sshd' after each reboot, get a copy of these files from the source&lt;BR /&gt;download from &lt;A href="http://www.openssh.org" target="_blank"&gt;http://www.openssh.org&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;# cp /home/openssh_config/sshd.rc /sbin/init.d&lt;BR /&gt;# cp /home/openssh_config/sshd /etc/rc.config.d&lt;BR /&gt;&lt;BR /&gt;# ln -s /sbin/init.d/sshd.rc /sbin/rc2.d/S110sshd&lt;BR /&gt;# ln -s /sbin/init.d/sshd.rc /sbin/rc1.d/K890sshd&lt;BR /&gt;&lt;BR /&gt;As your own user id generate a key for 'ssh' from you own home directory:&lt;BR /&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;$ cd /home/myuser&lt;BR /&gt;$ /opt/openssh2/bin/ssh-keygen&lt;BR /&gt;Enter file and press return (/home/myuser/.ssh/identity)&lt;BR /&gt;Enter Passphrase (not required, just press return)&lt;BR /&gt;&lt;BR /&gt;Make a directory on the server at the other end to contain the authority key. This file is the same as just generated as your own user id except that is must be called /home/myuser/.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;Before this key will work, the destination server also needs to have the 'zlib' and 'openssh' filesets installed and the 'sshd' daemon running as per the above procedures.&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Dec 2001 14:35:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635851#M42400</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2001-12-27T14:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: secure shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635852#M42401</link>
      <description>Ramesh,&lt;BR /&gt;I found my install/configuration notes for that version. Some steps that only apply to my company have been removed. Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Installing on a 11.00 box, for 10.20 subsititute the 10.20 name as needed&lt;BR /&gt;If this is a clean install instead of an upgrade, skip to step 4&lt;BR /&gt;&lt;BR /&gt;4) Install openssh and dependecies &lt;BR /&gt;swinstall -s depotservername:/var/spool/sw/openssh &lt;BR /&gt;select all three packages (zlib, openssl, and openssh and proceed with install/analysis) *it should be noted that I created a bundle just for these three products&lt;BR /&gt;   &lt;BR /&gt;5) Generate /opt/openssh2/etc/ssh_host_key &lt;BR /&gt;   /opt/openssh2/bin/ssh-keygen -b 1024 -f /opt/openssh2/etc/ssh_host_key -N ''&lt;BR /&gt;      &lt;BR /&gt;6) Generate root's key   &lt;BR /&gt;   /opt/openssh2/bin/ssh-keygen&lt;BR /&gt;   press enter when prompted for file location&lt;BR /&gt;   press enter when prompted for passphrase&lt;BR /&gt;   &lt;BR /&gt;7) Add /opt/openssh2/bin to root's .profile&lt;BR /&gt;   cd &lt;BR /&gt;   vi .profile&lt;BR /&gt;   PATH=/usr/sbin:$PATH:/sbin:/opt/openssh2/bin:(make sure these entries match)&lt;BR /&gt;&lt;BR /&gt;8) cd /opt/openssh2/etc&lt;BR /&gt;   vi sshd_config &lt;BR /&gt;   #HostKey /opt/openssh2/etc/ssh_host_dsa_key&lt;BR /&gt;   IgnoreRhosts no&lt;BR /&gt;   RhostsAuthentication yes&lt;BR /&gt;   RhostsRSAAuthentication yes&lt;BR /&gt;&lt;BR /&gt;9) Create the /usr/local/sbin/sshd startup (which you already have)&lt;BR /&gt;&lt;BR /&gt;10) Start Secure Shell&lt;BR /&gt;   /sbin/init.d/sshd start&lt;BR /&gt; &lt;BR /&gt;11)Link scp to avoid potential scp errors with the depot version&lt;BR /&gt;   On the client:&lt;BR /&gt;   ln -s /opt/openssh2/bin/scp /usr/sbin/scp &lt;BR /&gt;    &lt;BR /&gt;GL,&lt;BR /&gt;C&lt;BR /&gt;       &lt;BR /&gt;</description>
      <pubDate>Thu, 27 Dec 2001 14:52:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635852#M42401</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-12-27T14:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: secure shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635853#M42402</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It seems that the /opt/openssh2/etc directory&lt;BR /&gt;and the contents of the directory are not created during the installation.&lt;BR /&gt;The swinstall went fine but no /opt/openssh2/etc .&lt;BR /&gt;&lt;BR /&gt;Ramesh&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Dec 2001 04:38:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secure-shell/m-p/2635853#M42402</guid>
      <dc:creator>Ramesh_1</dc:creator>
      <dc:date>2001-12-28T04:38:53Z</dc:date>
    </item>
  </channel>
</rss>

