温馨提示:本文翻译自stackoverflow.com,查看原文请点击:linux - connect to host localhost port 22: Connection refused
hadoop linux ssh

linux - 连接到主机localhost端口22:连接被拒绝

发布于 2020-04-15 11:11:20

在本地计算机上安装hadoop时,出现以下错误

ssh -vvv localhost 
OpenSSH_5.5p1, OpenSSL 1.0.0e-fips 6 Sep 2011 
debug1: Reading configuration data /etc/ssh/ssh_config    
debug1: Applying options for * 
debug2: ssh_connect: needpriv 0 
debug1: Connecting to localhost [127.0.0.1] port 22. 
debug1: connect to address 127.0.0.1 port 22: Connection refused 
ssh: connect to host localhost port 22: Connection refused

有什么可以比更改端口号帮助我解决此错误?

查看更多

提问者
Surya
被浏览
140
community wiki 2014-01-20 03:54

我的端口号不同。我尝试使用

ssh localhost -p 8088

这对我有用