sftp jobs /.ssh... permission errors

A discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
cagatayucuzal
Posts: 40
Joined: Thu Jun 01, 2017 9:15 am

sftp jobs /.ssh... permission errors

Post by cagatayucuzal » Tue Nov 21, 2017 1:58 am

Hello ,
Our COZ sftp JCLs try reach this folders, but these folders don't exits.

/.sh_history
/.ssh/config
/.ssh/id_rsa
/.ssh/id_rsa

Why cozsftp jobs try to reach this folders? is there any setting for stop the JCLs reach this folders?

Regards

dovetail
Site Admin
Posts: 1839
Joined: Thu Jul 29, 2004 12:12 pm

Re: sftp jobs /.ssh... permission errors

Post by dovetail » Sat Nov 25, 2017 11:28 am

Co:Z SFTP does not create these files are folders.
Are you asking why they do not exist?

Note: these files look like standard file names that you would have if you had a userid with a home directory of "/".
This is generally not a good idea.

cagatayucuzal
Posts: 40
Joined: Thu Jun 01, 2017 9:15 am

Re: sftp jobs /.ssh... permission errors

Post by cagatayucuzal » Tue Nov 28, 2017 6:27 am

our coz jcl tried to access this folder we don't known reason

/.sh_history
/.ssh/config
/.ssh/id_rsa
/.ssh/id_rsa

there is no file /.ssh

our coz jcl using

/etc/ssh/zos_ssh_config

is that the reason?

dovetail
Site Admin
Posts: 1839
Joined: Thu Jul 29, 2004 12:12 pm

Re: sftp jobs /.ssh... permission errors

Post by dovetail » Tue Nov 28, 2017 4:47 pm

Co:Z SFTP uses IBM z/OS OpenSSH.

If you are using a z/OS userid that has a OMVS segment with a HOME directory "/", then IBM OpenSSH will try to use these files:

/.ssh/config
/.ssh/id_rsa
/.ssh/id_rsa

The IBM Unix shell (/bin/sh) will try to use this file:
/.sh_history

1) Why is it a problem if these file do not exist? Are you getting errors running Co:Z SFTP because these file don't exist?

2) If you want the IBM Unix shell and IBM z/OS OpenSSH to use different files, then change the HOME directory in the OMVS segment to something else and create that directory, making it owned by the userid like you would for any home directory.

Post Reply