The support team at Zend has written a knowledge base of tips for configuring and administering Zend Server for IBM i. The tips, written chiefly by Rod Flohr, are accurate and thorough. Recommended is the site’s option to notify registered users when new articles are posted. URL: https://support.zend.com/hc/en-us/sections/200554323-Zend-Server-for-IBM-i
By default, IBM i’s Secure Shell (SSH) rejects connection attempts from user profiles longer than eight (8) characters. When long user profiles are rejected, error messages will vary, but users of Zend Studio, for example, will see “Failed to connect sshd on “<some ip address>.”
Since IBM i release 6.1, IBM i has supported an SSH setting, ibmpaseforienv PASE_USRGRP_LIMITED=N, to permit user profiles longer than 8 characters. IBM i 7.2 brought improved support for this capability.
- IBM i 6.1 and 7.1 require a PTF and the new setting.
- IBM i 7.2 and higher require only the setting.
For details, see Zend Support specialist Rod Flohr’s article about how to remove the 8-character limit on user profiles when connecting via SSH.
(Dec. 3, 2017) Update for IBM i 7.3 and beyond: The path of sshd_config remains /QOpenSys/QIBM/UserData/SC1/OpenSSH/etc, unchanged from the IBM i 7.2 path in Rod’s article.
Secure Shell (SSH), a network protocol used every day by software developers, provides a fast, secure means to transfer files and submit commands to remote servers.
Zend Studio 8.0‘s SSH support allows users to save their PHP scripts onto remote servers such as IBM i.
How to set up SSH on IBM i
SSH runs as a server program, the SSH daemon (sshd). Before sshd can run, it requires a set of public/private key pairs.
Instructions for creating the key pairs and starting the server are given below. There are two versions of instructions, depending on the version of OS.
IBM i v6.1 and higher: one step creates public/private keys (if needed) and starts server
V5R3 and V5R4: two steps are required
1. First, create the public/private key pairs (only needs to be done once):
CALL QP2TERM 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 ""
2. Then start sshd (“&” means to run in background):
On March 9, 2011, I’ll present a free webinar about how to create a Zend Framework project on IBM i. The webinar is at 9am PST, 12pm EST. Sign up here: http://www.zend.com/en/company/news/event/790_webinar-your-first-zend-framework-project-on-ibm-i
Here’s the complete list of my upcoming talks.
I just upgraded my copy of Zend Studio for IBM i from 7.0.2 to 7.2.1. Big improvement!
My use case: I typically use Zend Studio’s “Remote Server” facility to connect to the IBM i over FTP. With 7.2.1, FTP-based files now open and save much faster than before. In addition, the FTP connection no longer randomly disconnects the way it used to.
I recommend upgrading to 7.2.1, especially for anyone using FTP. It provides a smooth, hassle-free user experience.
Get Zend Studio here: http://www.zend.com/en/products/studio/downloads. Scroll down to the edition you need.
Note: this product is still free to users of IBM i, a nice benefit of Zend’s relationship with IBM.