Hadoop on Windows with Eclipse -04- Setup SSH daemon

Setup SSH daemon

Both Hadoop scripts and Eclipse plug-in need password-less SSH to operate. This section describes how to set it up in the Cygwin environment.

Configure ssh daemon

  1. Open the Cygwin command prompt.
  2. Execute the following command:

    ssh-host-config

  3. When asked if privilege separation should be used, answer no.
  4. When asked if sshd should be installed as a service, answer yes.
  5. When asked about the value of CYGWIN environment variable, enter ntsec.
  6. Here is an example session of this command. Note that the input typed by the user is shown in pink and output from the system is shown in gray.


    Example of using ssh-host-config

Start SSH daemon

here

  1. Find My Computer icon either on your desktop or in the start-up menu, right-click on it and select Manage from the context menu.
  2. Open Services and Applications in the left-hand panel then select the Services item.
  3. Find the CYGWIN sshd item in the main section and right-click on it.
  4. Select Start from the context menu. 

Start SSHD service

  • A small window should pop-up indicating the progress of the service start-up. After that window disappears the status of CYGWIN sshd service should change to Started.

Setup authorization keys

Eclipse plug-in and Hadoop scripts require ssh authentication to be performed through authorization keys rather than passwords. The following steps describe how authorization keys are set up.

here

    1. Open cygwin command prompt
    2. Execute the following command to generate keys

      ssh-keygen

    3. When prompted for filenames and pass phrases press ENTER to accept default values.
    4. After the command has finished generating keys, enter the following command to change into your .ssh directory:

      cd ~/.ssh
    5. Check if the keys were indeed generated by executing the following command:

      ls -l

      You should see two files id_rsa.pub and id_rsa with recent creation datesThese files contain authorization keys.

    6. To register the new authorization keys enter the following command (note the sharply-angled double brackets -- they are very important):

      cat id_rsa.pub >> authorized_keys

      Setting up authorization keys

    7. Now check if the keys were set up correctly by executing the following command:

      ssh localhost

      Since it is a new ssh installation, you will be warned that authenticity of the host could not be established and will be asked whether you really want to connect. Answer yes and press ENTER. You should see the Cygwin prompt again, which means that you have successfully connected.

    8. Now execute the command again:

      ssh localhost

This time you should not be prompted for anything.

时间: 2024-09-19 03:32:42

Hadoop on Windows with Eclipse -04- Setup SSH daemon的相关文章

Hadoop on Windows with Eclipse -02- Prerequisites

Prerequisites Before we begin, make sure the following components are installed on your workstation (win 7 sp1 x64): jdk1.8.0_144 (jdk-8u144-windows-x64.exe) Eclipse Oxygen (4.7.1) (eclipse-jee-oxygen-1-win32-x86_64.zip) Installing Cygwin After insta

Hadoop on Windows with Eclipse -05- Download, Copy and Unpack Hadoop

Download, Copy and Unpack Hadoop The next step is to download and copy the Hadoop distribution. here   Download hadoop 2.8.1 and place in some folder on your computer such as C:\Java. Open Cygwin command prompt. Execute the following command: cd Exec

Hadoop on Windows with Eclipse -03- Set Environment Variables

Set Environment Variables The next step is to set up the PATH environment variable so that Eclipse IDE can access Cygwin commands here To set environment variables follow these steps: Find "My Computer" icon either on the desktop or in the start

Hadoop on Windows with Eclipse -06- Unpack Hadoop Installation

Unpack Hadoop Installation The next step is to unpack the downloaded and copied package. here To unpack the package follow these steps: Open a new Cygwin window. After the new Cygwin window appears, execute the following command: tar -xzf hadoop-0.19

windows下eclipse调试hadoop详解

1)下载Eclipse http://www.eclipse.org/downloads/ Eclipse Standard 4.3.2 64位 2) 下载hadoop版本对应的eclipse插件 我的hadoop是1.0.4,因此下载hadoop-eclipse-plugin-1.0.4.jar 下载地址:http://download.csdn.net/detail/m_star_jy_sy/7376169 3)安装hadoop插件 将hadoop-eclipse-plugin-1.0.4.

windows下eclipse远程访问hadoop。worldcount程序报错

问题描述 windows下eclipse远程访问hadoop2.2.0.worldcount程序报错Exceptioninthread"main"java.lang.NullPointerExceptionatjava.lang.ProcessBuilder.start(ProcessBuilder.java:1011)atorg.apache.hadoop.util.Shell.runCommand(Shell.java:404)atorg.apache.hadoop.util.Sh

请问ubuntu16.04下ssh连接到远程服务器出现奇怪的乱码

问题描述 请问ubuntu16.04下ssh连接到远程服务器出现奇怪的乱码 但是在ubuntu下的虚拟机下的centos下连接是不会出现乱码的, 而在mysql下的数据库下的都不会乱码,请问这是怎么回事,谢谢.

位置-eclipse中的ssh插件安装问题

问题描述 eclipse中的ssh插件安装问题 我想问下,我的struts2约束文件struts-2.0.dtd,hibernate的插件hibernatetools-Update-4.1.1.Final.zip以及spring的插件springsource-tool-suite-3.4.0.RELEASE-e4.3.1-updatesite.zip插件都安装到什么位置了,大神们快给我说说吧, 解决方案 安装完之后会在eclipse安装路径下的plugins和features这两个文件夹中出现相

ubuntu16.04服务器配置ssh免密码登录_Linux

在客户端操作 ssh-keygen -t rsa 文件位置写/home/try/.ssh/server_rsa,不使用默认值,我命名为server_rsa担心影响到git的key(因为我的git使用的是默认值) ssh-copy-id root@123.45.56.78(你的服务器ip), 或这使用 cat ~/.ssh/id_rsa.pub | ssh user@123.45.56.78 "mkdir -p ~/.ssh && cat >> ~/.ssh/autho