Studio failed to connect sshd on IBM i - verify SSH is started

Follow

Issue

Zend Studio displays a message similar to this:

Failed to connect sshd on "<some ip address>"

Environment

Any version of Zend Studio connecting to IBM i 6.1 or higher.

Resolution

A failure to connect to SSH on the IBM i partition may mean you need to start or restart SSH.

From the 5250 command line:

WRKACTJOB SBS(QUSRWRK)

Look for one or more jobs named 'QP0ZSPWP' running function 'PGM-sshd'. The job name 'QP0ZSPWP' can be used for other things, so do verify that the function is 'PGM-sshd'.

               Current                          
Subsystem/Job  User        Type  CPU %  Function
QUSRWRK        QSYS        SBS      .0          
  QP0ZSPWP     QSECOFR     BCI      .0  PGM-sshd
  QSCLICEV     QSYS        BCH      .0          
  QSCWCHMS     QUSER       BCH      .0         

If the job is there, end it by running this command from the command line in the 'Work with Active Jobs' display:

ENDTCPSVR SERVER(*SSHD)

Verify the job is no longer running by using F5 in the 'Work with Active Jobs' display until the job has ended.  In some cases, you may see a job that won't end, and will have to force it down with endjob or even endjobabn.

If the job was not there, or you ended it, then run this command to start it:

STRTCPSVR SERVER(*SSHD)

Verify the job is now running by using F5 in the 'Work with Active Jobs' display until the job displays.

Once the job is verified, retry the connection in Zend Studio.  If the connection is still not working, please continue with the following articles:

Studio failed to connect sshd on IBM i - long user ID or password

Studio failed to connect sshd on IBM i - test SSH with ExtraPuTTY

Comments