hadoop学习之通过cygwin配置ssh服务?快过年了,找了家新单位开始学习hadoop。?机器是xp系统,cygwin的安装过
hadoop学习之通过cygwin配置ssh服务
?
快过年了,找了家新单位开始学习hadoop。
?
机器是xp系统,cygwin的安装过程略去。
?
?
ssh的配置如下:
?
?
?
*** Query: Enter the value of CYGWIN for the daemon: []
*** Info: The sshd service has been installed under the LocalSystem
*** Info: account (also known as SYSTEM). To start the service now, call
*** Info: `net start sshd' or `cygrunsrv -S sshd'. Otherwise, it
*** Info: will start automatically after the next reboot.
*** Info: Host configuration finished. Have fun!
greatwhite@IT01020110116 ~
$ cd .ssh
greatwhite@IT01020110116 ~/.ssh
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/greatwhite/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/greatwhite/.ssh/id_rsa.
Your public key has been saved in /home/greatwhite/.ssh/id_rsa.pub.
The key fingerprint is:
4a:9e:50:56:88:28:10:c1:2d:a8:4a:61:9f:75:9c:c3 greatwhite@IT01020110116
The key's randomart image is:
+--[ RSA 2048]----+
|Bo.. .o.o |
|o=.....E |
|o.+ o + . |
|.. o o |
|o . . S |
|. + o |
| + |
| |
| |
+-----------------+
greatwhite@IT01020110116 ~/.ssh
$ ls
id_rsa id_rsa.pub
greatwhite@IT01020110116 ~/.ssh
$ cp id_rsa.pub authorized_keys
greatwhite@IT01020110116 ~/.ssh
$ ls
authorized_keys id_rsa id_rsa.pub
greatwhite@IT01020110116 ~/.ssh
$ exit?
?
先退出cygwin,然后重新打开一个cygwin窗口。
?
?
?写道
greatwhite@IT01020110116 ~
$ ssh localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is 03:df:9e:d4:d2:84:e6:2c:a8:a2:b7:e7:f9:09:83:76.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
greatwhite@IT01020110116 ~
$ who
greatwhite tty1 2011-12-27 11:44 (localhost)?
?
配置成功。