login about faq

How can I set the SFTP home directory of users to be in MVS?

asked Jan 04 '11 at 14:42

SSH%20KB's gravatar image


The environment variable SSH_SFTP_HOME_MVS can be used to control where the user lands when connecting with an sftp client to Tectia Server on z/OS.

If the environment variable is omitted or its value is NO, the user's USS home directory is used as the file transfer home. If the value of the is environment variable YES, the file transfer home location will be in MVS.

The variable can be set in two places: To take it into use for all users, it can be put in the /etc/environment file. To take it into use for a single user, it needs to be in the $HOME/.ssh2/environment file under the user's home directory.

For example, user tester has OMVS home directory in /u/tester and wants to set the SFTP home to be his MVS user prefix. The file /u/tester/.ssh2/environment should have a line that look like this:


The landing destination on MVS side should be the user's prefix. However, in versions 6.0.1 to 6.0.5 of the Tectia Server for IBM z/OS there is a known issue that the landing directory is the MVS master catalog, and the user needs to cd to the prefix by using "cd /_" command.


answered Jan 04 '11 at 14:44

SSH%20KB's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jan 04 '11 at 14:42

Seen: 5,039 times

Last updated: Jan 04 '11 at 14:44

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.