Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Failled to connect SSH localhost 2222

Failled to connect SSH localhost 2222

Contributor

Hi,

i'm using HDP 2.5. After restarting virtualbox, i'm trying to connect sandbox via terminal using ssh root@127.0.0.1 -p 2222

it shows some error msg as : "ssh_exchange_identification: read: Connection reset by peer"

pls tell me how to resolve this issue?.

4 REPLIES 4

Re: Failled to connect SSH localhost 2222

login to booted vm and see what is entry for sshd grep sshd /etc/hosts.allow.

if sshd value is not there then add something like this

sshd:ALL

restrart sshd service

service sshd restart

Re: Failled to connect SSH localhost 2222

Contributor

Thanks i would try this.

Re: Failled to connect SSH localhost 2222

Contributor

sorry i can't able to login booted vm. pls instruct me how to login booted vm. When i trying to connect Alt+F5, login with username:root ,password:hadoop. it says sshd re-exec requires execution with an absolute path.

Re: Failled to connect SSH localhost 2222

Super Guru
@Varun R

In addition to Raj's answer below, also try to restart network service and try ssh again. Sometimes NAT adapter doesn't work because of conflicted network settings.

service network restart
Don't have an account?
Coming from Hortonworks? Activate your account here