简体   繁体   English

ubuntu上的Hadoop ssh安装错误-连接被拒绝

[英]Hadoop ssh installation error on ubuntu - connection refused

Hi im trying to ssh to localhost but it showing a connection refuse error 嗨,我正在尝试SSH到本地主机,但显示连接拒绝错误

$ sudo addgroup hadoop
$ sudo adduser --ingroup hadoop hduser
user@ubuntu:~$ su - hduser
hduser@ubuntu:~$ ssh-keygen -t rsa -P ""
Generating public/private rsa key pair.
Enter file in which to save the key (/home/hduser/.ssh/id_rsa):
Created directory '/home/hduser/.ssh'.
Your identification has been saved in /home/hduser/.ssh/id_rsa.
Your public key has been saved in /home/hduser/.ssh/id_rsa.pub.
The key fingerprint is:
9b:82:ea:58:b4:e0:35:d7:ff:19:66:a6:ef:ae:0e:d2 hduser@ubuntu
The key's randomart image is:
[...snipp...]
hduser@ubuntu:~$ cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
hduser@ubuntu:~$ ssh localhost
ssh:connect to host localhost port 22: Connection refused

the last line shows the error, i dont know what im doing wrong. 最后一行显示错误,我不知道我在做什么错。 Im using VMware and running ubuntu using that. 我正在使用VMware,并使用它运行ubuntu。

****SOLVED**** ****解决了****

all i had to was install openssh server and it works 我所要做的就是安装openssh服务器,它可以正常工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM