VMware Cloud Community
jamesmcniel
Contributor
Contributor
Jump to solution

Putty and ESX 3.0

I just installed ESX 3.0 and VC 2.0 for the first time to start playing with it. I'm having an issue though trying to putty to the machine. As soon as putty tries to connect it immediately just closes. I get no error or anything to indicate why this is happening. I can putty just fine from my machine to any of the ESX 2.5.x boxes.

Also, when I telnet to the SSH port, it is in fact listening. Anybody experience this problem or have any ideas of what I could try to fix it? VMWare won't give me any support on 3.0 yet.

Reply
0 Kudos
1 Solution

Accepted Solutions
hicksj
Virtuoso
Virtuoso
Jump to solution

Which version of Putty are you using?

Download the latest and try again please.

Putty will exit without warning if no cipher can be negotiated, which happens with older versions of Putty & ESX3.

Regards,

J

View solution in original post

Reply
0 Kudos
56 Replies
sbeaver
Leadership
Leadership
Jump to solution

You are trying to log in as root over ssh and in ESX 3 that is not allowed.

You will need to edit /etc/ssh/sshd_config to allow root access

comment out or change the line

allow root access

service restart sshd

or better use a regular account to connect and su to root

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos
Michelle_Laveri
Virtuoso
Virtuoso
Jump to solution

direct root access with SSH has been disabled...

How to get in remotely?

1. Use the VI client pointed at the host and the Users & Group tab to create a user

2. login as that user using PuTTy

3. Levitate your rights to root using su - (or sudo as you prefer)

Optionally:

Edit the /etc/ssh/sshd_config file

Reset the permissions to ESX 2.x like ones

restart ssh with service sshd restart

Disadv:

Loss of traceability and auditing at the service console...

Regards

Mike

Regards
Michelle Laverick
@m_laverick
http://www.michellelaverick.com
Reply
0 Kudos
jamesmcniel
Contributor
Contributor
Jump to solution

thanks for the replies. The problem, though, is that when I try to putty into the server, I never get the option to log in. I had already found the forum discussion relating to enabling root login over SSH. The putty window just pops up for a quick second and then goes away.

Reply
0 Kudos
Michelle_Laveri
Virtuoso
Virtuoso
Jump to solution

mmm, got the right port number selected for SSH in puTTy - 22...

a clean download of puTTy defaults to something else...

so have you already got a valid user or weakened security?

Regards

Mike

Regards
Michelle Laverick
@m_laverick
http://www.michellelaverick.com
Reply
0 Kudos
jamesmcniel
Contributor
Contributor
Jump to solution

I have created another user on the host and that doesn't seem to help either. Yes, I have verified that the port is correct.

Reply
0 Kudos
jamesmcniel
Contributor
Contributor
Jump to solution

I unchecked the box in putty that closes the window automatically and I can now see the error. Putty is coming back with "Connection closed by remote host". Does this mean anything to anyone?

Thanks.

Reply
0 Kudos
sbeaver
Leadership
Leadership
Jump to solution

The ESX firewall might be blocking it.

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos
kix1979
Immortal
Immortal
Jump to solution

Check your Configuration --> Security Profile --> Properties. Make sure the SSH Server daemon is running. If it is not running you can highlight it, click on options and restart the service from there.

Thomas H. Bryant III
Reply
0 Kudos
jamesmcniel
Contributor
Contributor
Jump to solution

SSH Daemon is running. If I telnet to port the server and port 22, it is definitly listening on that port. I just don't know why it's not allowing Putty to connect. If I log in via WinSCP, that works as well. I have tried connecting to it via putty on two different machines and they both do the same thing.

Reply
0 Kudos
kix1979
Immortal
Immortal
Jump to solution

Restart the service anyways and ensure it is running. Also check via esxcfg-firewall -q to make sure "INPUT" has port 22 for ACCEPT connections. Also at the bottom is should say the sshServer is an enabled service.

Thomas H. Bryant III
Reply
0 Kudos
sbeaver
Leadership
Leadership
Jump to solution

Which protocal are you using with putty to connect?

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos
jamesmcniel
Contributor
Contributor
Jump to solution

Port 22 is showing as ACCEPT and I do in fact see sshServer under enabled services.

Reply
0 Kudos
jamesmcniel
Contributor
Contributor
Jump to solution

I am trying to connect using SSH port 22 with putty. The same way I have always connected to ESX servers.

Reply
0 Kudos
Michelle_Laveri
Virtuoso
Virtuoso
Jump to solution

sorry, to ask a silly question - but you can ping the esx COS nic by IP - not a routing issue?

I assume you can point the VI client at the esx host - and gain access that way?

Was this an upgrade or clean install?

Regards

Mike

Regards
Michelle Laverick
@m_laverick
http://www.michellelaverick.com
Reply
0 Kudos
jamesmcniel
Contributor
Contributor
Jump to solution

Mike,

This was a clean install. I can ping the server with no issue. And yes, I can manage the server via the Virtual Center server or by connecting the client directly to the server.

Thanks,

Jim

Reply
0 Kudos
kix1979
Immortal
Immortal
Jump to solution

You reboot this host lately?

Thomas H. Bryant III
Reply
0 Kudos
jamesmcniel
Contributor
Contributor
Jump to solution

Yes. I have rebooted it a few times now. That was the first thing I did before posting a message.

Reply
0 Kudos
skchaw
Contributor
Contributor
Jump to solution

Hi, you may try this :

vi /etc/ssh/sshd_config[/b]

Change below line

"[b]PermitRootLogin no[/b]".

to

PermitRootLogin yes[/b]

Then restart your service by usong below command :

/etc/init.d/sshd restart[/b]

[/b]

Reply
0 Kudos
andrew_hald
Hot Shot
Hot Shot
Jump to solution

SSH1 or SSH2 in PuTTy? Which one are you trying to use?

Reply
0 Kudos