Skip to main content
philpo
Silver ⭐️
January 8, 2020
Solved

Can't ssh into localhost on port 1080

I just download HDP 3.0.1.  I can log into Ambari as maria_dev, but I can't use putty (or Windows 10 ssh) to log in from a terminal (using Virtual Box, here)

 

I know the root password is hadoop, but when I try to connect, I get the error message "remote side unexpectedly closed network connection."  I tried:

ssh maria_dev@localhost -p 4200

 

I also tried

ssh root@localhost -p 4200 -pwd hadoop

 

...same error.  I'm never even given the chance to log in as either user, maria_dev nor root, so I can't even enter the password hadoop to change the root password.  Didn't have this problem in HDP 2.5

jsensharma
Platinum ⭐️⭐️
January 8, 2020

@philpo 

While Doing SSH can you try changing the port from 4200 to 2222

Example:

 

# ssh  root@127.0.0.1  -p 2222
(OR)
# ssh root@localhost -p 2222

 

 

OR try opening the WebTerminal on port 4200 in your Web Browser (4200 is not SSH port it is web terminal port used by service "shellinaboxd" )

 http://127.0.0.1:4200

2 replies

jsensharma
Platinum ⭐️⭐️
Platinum ⭐️⭐️
January 8, 2020

@philpo 

While Doing SSH can you try changing the port from 4200 to 2222

Example:

 

# ssh  root@127.0.0.1  -p 2222
(OR)
# ssh root@localhost -p 2222

 

 

OR try opening the WebTerminal on port 4200 in your Web Browser (4200 is not SSH port it is web terminal port used by service "shellinaboxd" )

 http://127.0.0.1:4200

Translate
philpo
philpoAuthor
Silver ⭐️
January 8, 2020

Thanks, jsensharma!

Translate