Setting up SSHD for access IBM'i' with Zend Studio

[adrotate group=”3,4″]
One of the problems with the Zend Studio is the problems encountered when accessing the IBM ‘i’ using the FTP or mapped drive methods. I had a lot of problems getting the FTP server to connect the even more problems keeping the connection established while developing the code.

I decided to look at the SSH connectivity, the first thing you need to do is set up the SSHD server there are plenty on links out there which show you how to do this. The one I settled on using is IBM ‘i’ SSHD This link explains the installation process very well but the one problem I came across with all of the instructions I found was the set up of the keys required for SSH. All of the notes I found suggested using the following.


ssh-keygen -t rsa1 -f /QOpenSys/QIBM/UserData/SC1/OpenSSH/openssh-3.5p1/etc/ssh_host_key -N ""
ssh-keygen -t dsa -f /QOpenSys/QIBM/UserData/SC1/OpenSSH/openssh-3.5p1/etc/ssh_host_dsa_key -N ""
ssh-keygen -t rsa -f /QOpenSys/QIBM/UserData/SC1/OpenSSH/openssh-3.5p1/etc/ssh_host_rsa_key -N ""

The problem is they do not reflect the OS installation level!

Here is the note at the bottom of the IBM installation instructions which sorted it out for me..

For V5R3 and V5R4 the OpenSSH version is 3.5p1 and is located in directory /QOpenSys/QIBM/ProdData/SC1/OpenSSH/openssh-3.5p1/
For V6R1 the OpenSSH version is 3.8.1p1 and is located in directory /QOpenSys/QIBM/ProdData/SC1/OpenSSH/openssh-3.8.1p1/

The above code to create the keys has to be changed to reflect the correct path ie 6.1 should be:

ssh-keygen -t rsa1 -f /QOpenSys/QIBM/UserData/SC1/OpenSSH/openssh-3.8.1p1/etc/ssh_host_key -N ""
ssh-keygen -t dsa -f /QOpenSys/QIBM/UserData/SC1/OpenSSH/openssh-3.8.1p1/etc/ssh_host_dsa_key -N ""
ssh-keygen -t rsa -f /QOpenSys/QIBM/UserData/SC1/OpenSSH/openssh-3.8.1p1/etc/ssh_host_rsa_key -N ""

I hope that helps others..

Chris…

One thought on “Setting up SSHD for access IBM'i' with Zend Studio”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.