Install and Configure OpenSSH for Windows

4-88 Oracle Fusion Middleware Users Guide for Technology Adapters

17. Click the Advanced tab and click Environment Variables.

18. Click New and enter CYGWIN in the Variable Name field and ntsec in the

Variable Value field. 19. Add C:\cygwin\bin to the system path. 20. Open the cygwin window. 21. Type ssh-host-config. 22. You are prompted with the following questions: a. Shall privilege separation be used? yesno Enter yes. b. Shall this script create a local user sshd on this machine? Enter yes. c. Do you want to install sshd as service? Say no if its already installed as service yesno Enter yes. d. Which value should the environment variable CYGWIN have when sshd starts? Its recommended to set at least ntsec to be able to change user context without password. Default is binmode ntsec tty. Enter ntsec. 23. Type net start sshd to start the sshd service. 24. Run the following command in the cygwin window to replicate the Windows local user accounts to cygwin: mkpasswd --local etcpasswd mkgroup --local etcgroup 25. To test the setup, type ssh localhost in the cygwin window.

4.4.4.3 Set Up Oracle FTP Adapter for SFTP

To use the SFTP functionality, you must modify the deployment descriptor for Oracle FTP Adapter. Table 4–11 lists the properties for which you must specify a value in the deployment descriptor. The values of these properties depend on the type of authentication and the location of OpenSSH. Table 4–11 SFTP Properties Property Description useSftp Specify true. Mandatory : Yes Default value : false Oracle JCA Adapter for FilesFTP 4-89 authenticationType Specify PASSWORD for password-based authentication or PUBLICKEY for public key authentication. For password-based authentication, the user name and password specified in the weblogic-ra.xml file are used. Ensure that there is a Windows user with the same name and password as specified in the weblogic-ra.xml file. In addition, the user should have administrative privileges. For public key authentication, the privateKeyFile parameter must be set to the location of the private key file. Mandatory : Yes preferredKey ExchangeAlgorithm Specify diffie-hellman-group1-sha1 or diffie-hellman-group-exchange-sha1. This is an optional parameter where the user can select the default key exchange protocol for negotiating the session key for encrypting the message. Mandatory : No Default value : diffie-hellman-group1-sha1 preferred CompressionAlgorithm Specify none or zlib. This parameter enables the user to choose whether in-flight data should be compressed or not. Mandatory : No preferred DataIntegrityAlgorithm Specify hmac-md5 or hmac-sha1. This parameter enables the user to select the bulk-hashing algorithm for data integrity checks. Mandatory : No Default value : hmac-md5 preferredPKIAlgorithm Specify ssh-rsa or ssh-dsa. This parameter enables the user to configure the asymmetric cipher for the communication. Mandatory : No Default value : ssh-rsa privateKeyFile Specify the path to the private key file. This is required if the authenticationType parameter is set to PUBLICKEY. Mandatory : No Table 4–11 Cont. SFTP Properties Property Description