VMware Cloud Community
mikeleahyirelan
Contributor
Contributor

cant access via ssh

hi guys

i had root ssh access to my two esx servers last week. i did a lot of updates over the weekend and now one of them wont work. one is fine. i have checked the config file and it says rootuserlog in yes so looks ok there

i have downloaded vveam configurator and it fails when trying to acces it saying no connection could be made to esx2 cos the server actively refused it

any ideas?

Reply
0 Kudos
11 Replies
AWo
Immortal
Immortal

Firewallport open?

Use the vCenter Client or the console:

"esxcfg-firewall -q" shows wnhat is set.

"esxcfg-firewall -o 22,tcp,in,ssh" opens the necessary port.


AWo

VCP 3 & 4

Author @ vmwire.net

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
mikeleahyirelan
Contributor
Contributor

guys

still having trouble with this. i turned off the firewall and still cant access via ssh

error is "failed to login to esx2 via ssh, port 22, user "root" elevate to root false, autosudo false, the host actively refused it"

any idea??

Reply
0 Kudos
AWo
Immortal
Immortal

Please post

esxcfg-firewall -q

and the "/etc/sshd.conf" file.


AWo

VCP 3 & 4

Author @ vmwire.net

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
Jain
Hot Shot
Hot Shot

1. Connect using Virtual Infrasrtucture Client to your ESX using root credentials

2. Create new user, and grant this account with "shell access"

3. Connect using PuTTy to your ESX using newly created user

4. Run "su" you will be asked for a password - enter root password here

5. Run "vi /etc/ssh/sshd_config" find the line where it is stated "permit root login no" change this value to "yes" save file

6. Run "/etc/init.d/sshd restart" it will restart the service

-


Jain | VCP4 | Please award points, if you found answer useful

--------------------------------- *Jain* | VCP4 | +Please award points, if you found answer useful+
Reply
0 Kudos
mikeleahyirelan
Contributor
Contributor

"3. Connect using PuTTy to your ESX using newly created user"

i cant putty to the server!!!

how do i post the results of the firewall and conf file. i only have direct screen access to this esx2

Reply
0 Kudos
AWo
Immortal
Immortal

how do i post the results of the firewall and conf file. i only have direct screen access to this esx2

Gooooooooooooooooooooooooooooooood question....

Redirect it to a file using the " > filename.txt", copy it to a USB stick and transfer it to your desktop.


AWo

VCP 3 & 4

Author @ vmwire.net

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
mikeleahyirelan
Contributor
Contributor

i know im annoying you man but my linux skills arent the best

can you give me the syntax to redirect the output?

Reply
0 Kudos
AWo
Immortal
Immortal

esxcfg-firewall -q > /firewall.txt

cp firewall.txt

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
mikeleahyirelan
Contributor
Contributor

and how do i mount the usb?

Reply
0 Kudos
AWo
Immortal
Immortal

mount /dev//mnt

All you copy to /mnt will be on the USB stick, then.


AWo

VCP 3 & 4

Author @ vmwire.net

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
Reply
0 Kudos
Kasraeian
Expert
Expert

Hi,

Check this link.

It will tell you how to mount the external usb drive to your host.



-= If you found this note/reply useful, please consider awarding points for "Correct" or "Helpful" =-

-= If there's any mistake in my notes, please correct me! =-

-= Thanks =-

MCTS, VCP

If you found this note/reply useful, please consider awarding points for "Correct" or "Helpful" If there's any mistake in my notes, please correct me! Sohrab Kasraeianfard | http://www.kasraeian.com | @Kasraeian
Reply
0 Kudos