SCP SSH not working between ESXi hosts

Posted on 2011-10-14
Last Modified: 2013-11-05

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.
Question by:reliantcorp
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    Do you get an error message?

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


    /tmp # scp test.log

    Host '' 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
    test.log                                      100%    0     0.0KB/s   00:00
    /tmp #
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    Are you sure

    ESXi shell has been enabled for the host
    SSH for the host has been enabled.
    LVL 116

    Accepted Solution

    Also note, that you will also need to Add a Firewall Rule for SSH Outgoing

    Select the host server, Configuration, Security Profile, Properties on Firewall

    and Insert a Tick in SSH Client Outgoing

    See Screenshot

    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    Also note, that you will also need to Add a Firewall Rule for SSH Outgoing on each Host!

    Author Closing Comment

    Done, thanks a lot man. You just taught me about this built in firewall

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Problem : Unsupported or invalid disk type 7. Ensure that the disk has been imported. You can run into this problem when you try to power on virtual machine on Esxi that converted from physical to virtual machine. An error message prompt and runn…
    In VMware vSphere 4 1 and 5.0, if you have two or more hosts, using shared storage, (SAN/NAS) you can create a VMware vSphere Cluster and enable High Availability mode (HA), if you have the correct VMware vSphere Licensing. VMware vSphere High Av…
    This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
    This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now