Everytime I try to copy files from ESXi machine to other Linux machine it always fails. Either it waits for longer time or ends up with time out error.
Cmd used: scp local_file root@:IP:path/to/folder
cmd err:ssh: connect to host port 22: Connection timed out lost connection
Linux machine has sshd service running.
But, copying from Linux to ESXi works.
Where am I missing in configuration? Thanks in advance !!
Enable sshClient in the firewall properties of the server.
In vSphere Client select
host -> Configuration -> Security Profile -> Firewall -> Properties
then enable SSH Client
to enable outgoing scp connections.