Setup SSH

Brief

Setup SSH deamon on your i5/OS.

Dependencies

Configuration

RSTLICPGM LICPGM(5733SC1) DEV(OPTxx) OPTION(*BASE) RSTOBJ(*ALL) LNG(2924)
RSTLICPGM LICPGM(5733SC1) DEV(OPTxx) OPTION(1) RSTOBJ(*PGM)
You need to set up these keys only once after 5733-SC1 SSH install.
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 ""

Example

Server side (i5/OS):
CALL QP2TERM
>/usr/sbin/sshd &
Client side (linux works very well):
>ssh -X myi5
-- or --
>ssh -X myuserid@myi5.xxx.org (if your PC is not same user name)


Tip server side sshd auto start:
I changed the program in system value QSTRUPPGM to call my CL program that starts sshd
PGM
SBMJOB CMD(QSH CMD('/QOpenSys/usr/bin/sh -c +
 /QOpenSys/usr/sbin/sshd > /tmp/sshdlog.txt 2>&1')) JOB(SSHD) JOBQ(QUSRNOMAX) USER(SSHD)
ENDPGM

Performance

NA

Reference Links

Author

RangerCairns