IBM Support

OpenSSH: How to Stop SSH from Creating Thousands of Job Logs

Troubleshooting


Problem

This document explains what happens when a large numbers of job logs for SSH with only message CPF2523 listed in the log.

Resolving The Problem

When OpenSSH is in use on your system, every new fork in the Unix process has the potential to create a job log.

These job logs usually contain only the message CPF2523 and serve no real purpose.

To prevent this from happening, do the following:

1.Run the WRKJOBD QDFTJOBD command.
2.Copy the default to SSHJOBD, specifying the library of your choice.
3.Run the WRKJOBD SSHJOBD command. Select Option 2 to change, press F9 for more options, and set these values as given in the example that follows.

Message logging:                            
   Level  . . . . . . . . . . . .   0        
   Severity . . . . . . . . . . .   00        
   Text . . . . . . . . . . . . .   *NOLIST  
 Log CL program commands  . . . .   *NO    
4.Press the Enter key to save your changes.
Administrators may need to create additional user profiles for SSH use, specifying the job description SSHJOBD.

Profiles running SSHJOBD job description will not log anything, until an error of Severity 30 or higher is posted.

At this time, there is not a way to start SSH with TCP unless you have the QSH CMD('/QOpenSys/usr/sbin/sshd') command listed in your CL startup program.

If you use a batch job to start SSH, the new SSHJOBD job description must be specified for the Job Description.

To use a job schedule entry, run the following (example) command:

ADDJOBSCDE JOB(OPENSSH) CMD(QSH CMD('/QOpenSys/usr/sbin/sshd')) FRQ(*WEEKLY) SCDDATE(*NONE) SCDDAY(*ALL) SCDTIME('07:00')
JOBD(*LIBL/SSHJOBD) TEXT('Autostart SHH')

Note: Starting with release V6R1 of the operating system, SSHD is part of the TCP servers. You should use the CL commands below to start and end the SSHD on these machines.

STRTCPSVR SERVER(*SSHD)

ENDTCPSVR SERVER(*SSHD)

[{"Product":{"code":"SWG60","label":"IBM i"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Communications-TCP","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"5.4.0","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Historical Number

384898047

Document Information

Modified date:
18 December 2019

UID

nas8N1015450