簡體   English   中英

ubuntu上的Hadoop ssh安裝錯誤-連接被拒絕

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

嗨,我正在嘗試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

最后一行顯示錯誤,我不知道我在做什么錯。 我正在使用VMware,並使用它運行ubuntu。

****解決了****

我所要做的就是安裝openssh服務器,它可以正常工作

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM