I think you are on V7.1. If so there is an option on the STRTCPSVR command to start the ssh serve, been there since V6.1.
No need for the SBMJOB old way of doing it.

Try STRTCPSVR *SSHD.

Bryan

BTW if you have V5R4 IBM cerated a STRENDSSHD command

http://www-912.ibm.com/s_dir/slkbase.nsf/$$Search?openform
and search for "STRENDSSHD"





On , rob@xxxxxxxxx wrote:
I ran

SBMJOB CMD(CALL QP2SHELL PARM('/QOpenSys/usr/sbin/sshd')) JOB(SSHD)

JOBQ(QUSRNOMAX)

WRKACTJOB SBS(QUSRWRK)

shows one SSHD job running. This part in the joblog concerns me:

sshd[21689]: error: Bind to port 22 on 0.0.0.0 failed: The socket name is

already in use..

sshd[21689]: Server listening on :: port 22.



netstat *cnn shows it using 208.87.xxx.yyy. nslookup shows that address

is our sftp server. That job

Status of job . . . . . . . . . . . . . . . : ACTIVE

Current user profile . . . . . . . . . . . : ROB

Job user identity . . . . . . . . . . . . . : ROB

Set by . . . . . . . . . . . . . . . . . : *SYSTEM

Entered system:

Date . . . . . . . . . . . . . . . . . . : 07/03/12

Time . . . . . . . . . . . . . . . . . . : 14:50:14

Started:

Date . . . . . . . . . . . . . . . . . . : 07/03/12

Time . . . . . . . . . . . . . . . . . . : 14:50:14

Subsystem . . . . . . . . . . . . . . . . . : GASERVICES

Subsystem pool ID . . . . . . . . . . . . :

is Linoma's stuff. However I am trying to open a putty client not to our

sftp server but that i itself. netstat *ifc shows a plethora of IP

addresses.



Is there a way to configure the ssh daemon used by the above SBMJOB to

link to a specific address and not to all?

Is this what I have to get working to allow me to use my putty client and

bypass "Network error: Connection refused"?





Rob Berendt

--

IBM Certified System Administrator - IBM i 6.1

Group Dekko

Dept 1600

Mail to: 2505 Dekko Drive

Garrett, IN 46738

Ship to: Dock 108

6928N 400E

Kendallville, IN 46755

http://www.dekko.com



--

This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list

To post a message email: MIDRANGE-L@xxxxxxxxxxxx

To subscribe, unsubscribe, or change list options,

visit: http://lists.midrange.com/mailman/listinfo/midrange-l

or email: MIDRANGE-L-request@xxxxxxxxxxxx

Before posting, please take a moment to review the archives

at http://archive.midrange.com/midrange-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.