SCP SSH not working between ESXi hosts


just installed ESXi 5 on two different servers. I'm now trying to copy some files between both from the shell but scp and ssh won't connect.

Of course SSH is enabled.
I can connect using putty or Winscp from a windows machine.

Any help will be really appreciated.
D.
reliantcorpAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
Do you get an error message?

Do you get a prompt from the other server....

e.g.

/tmp # scp test.log root@141.xxx.xxx.15:/tmp/test.log

Host '141.xxx.xxx.15' is not in the trusted hosts file.
(fingerprint md5 de:xx:91:65:xx:xx:30:1f:d7:11:80:1d:xx:12:0f:ec)
Do you want to continue connecting? (y/n) y
Login for root@141.xxx.xxx.15
Password:
test.log                                      100%    0     0.0KB/s   00:00
/tmp #
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
Are you sure

ESXi shell has been enabled for the host
SSH for the host has been enabled.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
Also note, that you will also need to Add a Firewall Rule for SSH Outgoing

 ssh-outgoing.jpg
Select the host server, Configuration, Security Profile, Properties on Firewall

and Insert a Tick in SSH Client Outgoing

See Screenshot



   Firewall-SSH-Outgoing-Enable

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ensure Business Longevity with As-A-Service

Using the as-a-service approach for your business model allows you to grow your revenue stream with new practice areas, without forcing you to part ways with existing clients just because they don’t fit the mold of your new service offerings.

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
Also note, that you will also need to Add a Firewall Rule for SSH Outgoing on each Host!
reliantcorpAuthor Commented:
Done, thanks a lot man. You just taught me about this built in firewall
Hanif MohaCommented:
I used to connect to SSH by enabling SSh service on ESXI but this time dd not work. After enabling the shell and restarting the servic it worked.
Thank you for the help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.