Beruflich Dokumente
Kultur Dokumente
Pgina 1 de 15
Important:
If you do not want to install Cygwin to deploy Management Agents on Microsoft Windows
hosts using the Add Host Targets Wizard or EM CLI, you can choose to deploy
Management Agents on these hosts using the PsExec process utility. For information on
how to deploy Management Agents on Microsoft Windows hosts using PsExec, see
Appendix F (appdx_install_agent_psexec.htm#CHDGGHFF) .
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
Pgina 2 de 15
The SSH Daemon enables the Add Host Targets Wizard to establish SSH connectivity
between the OMS host and the host on which you want to install a Management Agent. Using
this connectivity, the wizard transfers the Management Agent software binaries to the
destination host over SSH protocol, installs the Management Agent, and configures it.
1. Ensure OpenSSH\bin and mksnt are not in your PATH environment variable. If they
are, remove them by doing the following:
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
Pgina 3 de 15
2. Stop the SSH Daemon if it is running from OpenSSH , MKS or any other vendor. If the
SSH Daemon is running, stop it by doing the following:
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
Pgina 4 de 15
Note:
The navigational steps described in this section may vary for different Microsoft Windows
operating systems.
(http://www.cygwin.com/)
2. Download the 32-bit version (if you are running a 32-bit version of Microsoft Windows)
or the 64-bit version (if you are running a 64-bit version of Microsoft Windows) of the
Cygwin setup executable.
3. Run the setup executable, then click Next to proceed.
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
Pgina 5 de 15
4. On the Choose Installation Type screen, select Install from Internet, then click Next.
5. On the Choose Installation Directory screen, enter C:\cygwin as the Root Directory,
then click Next.
Note:
If you choose to install Cygwin in a different directory, then ensure that you update
the SSH_PATH, SCP_PATH, MKDIR_PATH, SH_PATH, CHMOD_PATH , and TRUE
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
Pgina 6 de 15
their proper Cygwin binary values, after installing the Enterprise Manager system.
For example, if you choose to install Cygwin in the D:\software\cygwin
directory, then update the specified properties in the following manner:
SCP_PATH=D:\software\cygwin\bin\scp.exe
SH_PATH=D:\software\cygwin\bin\sh.exe
CHMOD_PATH=D:\software\cygwin\bin\chmod.exe
LS_PATH=D:\software\cygwin\bin\ls.exe
6. On the Select Local Package Directory screen, select a directory on your local machine
where you want to store the downloaded installation files, then click Next.
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
Pgina 7 de 15
7. On the Select Connection Type screen, select appropriate settings to connect to the
internet, then click Next.
8. On the Choose Download Site(s) screen, select any site from the available list, then
click Next.
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
Pgina 8 de 15
9. On the select packages screen, ensure that you select the following packages, then
click Next:
From the Archive category, select unzip and zip as follows:
After selecting the packages and clicking Next, the Resolving Dependencies screen is
displayed. Click Next to proceed.
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
Pgina 9 de 15
10. On the Installation Status and Create Icons screen, do not make any changes. Click
Finish to complete the installation process.
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
Pgina 10 de 15
Cygwin on a host.
Note:
While configuring SSH, you may need to run the cygwin.bat script. While running
cygwin.bat in Microsoft Windows Server 2008 and Microsoft Windows Vista, ensure that
you invoke it in administrator mode. To do this, right-click the cygwin.bat file and select
Run as administrator.
To configure SSH and test your Cygwin setup, follow these steps:
1. After you install Cygwin, navigate to the C:\cygwin directory, open the Cygwin.bat
file in edit mode using any editor, and add the following line before invoking the bash
shell.
set CYGWIN=binmode ntsec
For example, here are the contents for the Cygwin.bat file after adding the above
line:
@echo off C: chdir C:\cygwin\bin set CYGWIN=binmode ntsec bash
--login -i
If Cygwin is installed properly, then all the Cygwin help options are displayed on the
screen. However, if this command returns an error message, then you may have to
reinstall Cygwin.
3. To configure the SSHD service, run C:\cygwin\Cygwin.bat , and execute the
following command:
ssh-host-config
After running the command, you are prompted the following questions:
*** Query: Should privilege separation be used? <yes/no>: yes ***
Query: New local account 'sshd'? <yes/no>: yes *** Query: Do you
want to install sshd as a service? *** Query: <Say "no" if it is
already installed as a service> <yes/no>: yes *** Query: Enter the
value of CYGWIN for the deamon: [] binmode ntsec *** Query: Do you
want to use a different name? (yes/no) yes/no
At this point, if you want to use the same name, that is cyg_server, enter no. You
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
Pgina 11 de 15
However, if you want to use a different name, enter yes. You are then prompted the
following questions:
*** Query: Enter the new user name: cyg_server1 *** Query: Reenter:
cyg_server1 *** Query: Create new privileged user account
'cyg_server1'? (yes/no) yes *** Query: Please enter the password:
*** Query: Reenter:
4. Backup the c:\cygwin\etc\passwd file and then use any editor to open the file in
edit mode. Remove only those entries of the user that you will use to connect to the
host on which you want to install a Management Agent. Ask the user to make a backup
of the c:\cygwin\etc\passwd file before editing.
If the user that you are employing to connect to the host on which you want to install
the Management Agent is a local user, run C:\cygwin\Cygwin.bat and execute
the following:
/bin/mkpasswd -l u <USER> >> /etc/passwd (for
example, /bin/mkpasswd -l -u pjohn >> /etc/passwd)
If the user you are employing to connect to the host on which you want to install the
Management Agent running is a domain user, run C:\cygwin\Cygwin.bat and
execute the following:
/bin/mkpasswd -d -u <USER> >> /etc/passwd (for
example, /bin/mkpasswd -d -u pjohn >> /etc/passwd) mkdir
-p /home/<USER> (for example, mkdir -p /home/pjohn) chown
<USER> /home/<USER> (for example, chown pjohn /home/pjohn)
5. (Only if the Cygwin software you have installed is of version 1.7.32 or higher) Open
C:\cygwin\etc\sshd_config in a text editor and add the following line to the end of
the file:
KexAlgorithms diffie-hellman-group-exchange-sha1,diffie-hellmangroup1-sha1
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
Pgina 12 de 15
6. (For a domain user only) If the user you are employing to connect to the host on which
you want to install the Management Agent is a domain user, do the following to start the
SSH daemon:
Note:
If /var/log/sshd.log does not exist, you do not have to execute the
following commands:
chown <USERNAME> /var/log/sshd.log chmod
644 /var/log/sshd.log
OR
Run C:\cygwin\Cygwin.bat and execute the following command:
cygrunsrv -S sshd
OR
Perform these steps:
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
Pgina 13 de 15
Note:
If the SSH daemon does not start up, view the c:\cygwin\var\log\sshd.log
file for information on why the start up failed.
8. You can now test your Cygwin setup.
To do this, go to a different machine (that has the ssh client running), and execute the
following command:
ssh -l <USERNAME> <localhost> 'date' OR ssh -l <USERNAME> <this
node> 'date'
For example,
ssh -l pjohn example.com 'date'
This command will prompt you to specify the password. When you specify the correct
password, the command should return the accurate date.
Note:
If you experience a process fork failure, memory leak error, or a file access error after
configuring SSH, view the following website for a workaround:
http://cygwin.com/faq.html
(http://cygwin.com/faq.html)
If you are unable to find a workaround for your problem, report your problem to the Cygwin
community using the following website:
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
http://cygwin.com/problems.html
Pgina 14 de 15
(http://cygwin.com/problems.html)
1. If the OMS host runs on a Microsoft Windows platform, perform the following on the
OMS host:
a. Right click My Computer, then select Properties. In the window that appears,
select Advanced system settings, then select Environment Variables. In the
System Variables section, create the CYGWIN variable, and specify its value as
nodosfilewarning
Note:
You do not need to restart the host after performing this step.
b. Navigate to the Cygwin install directory (that is, C:\cygwin if you chose to
install Cygwin in the default location), open the Cygwin.bat file in edit mode
using any editor, then edit the following line:
set CYGWIN=binmode ntsec nodosfilewarning
For example, these are the contents of the Cygwin.bat file after editing the
above line:
@echo off C: chdir C:\cygwin\bin set CYGWIN=binmode ntsec
nodosfilewarning bash --login -i
c. From the Start menu, select Run. For Open, enter services.msc, then click
OK. Search for the Cygwin SSHD service and stop it.
d. Navigate to the Cygwin install directory (that is, C:\cygwin if you chose to
install Cygwin in the default location), then run Cygwin.bat. Run the following
command to start the SSHD service:
$ /usr/sbin/sshd
Note:
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015
Pgina 15 de 15
2. Perform the tasks mentioned in Step 1 on all the Microsoft Windows target hosts (on
which you want to install Management Agents using the Add Host Targets Wizard or
EM CLI).
http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.h... 09/04/2015