VMware Cloud Community
sefland
Contributor
Contributor

trouble with scp between esx 3 servers

Hi,

After installation I can use winscp to the ESX servers, but when I tried scp on the service-console between the esx servers I get "connetion refused"

Any suggestion. I have googled around before I posted this messeage.

Tags (1)
0 Kudos
11 Replies
Nautilus
Enthusiast
Enthusiast

do you opened the firewall port for scp ?

Kind regards Nautilus ________________________________________________________________________________________________________________________________________________ If you found this or any other post helpful please consider the use of the Helpfull/Correct buttons to award points
0 Kudos
virtualdud3
Expert
Expert

What command are you using? Are you trying to SCP with a different account than the one used by WinSCP?

###############

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!

############### Under no circumstances are you to award me any points. Thanks!!!
0 Kudos
sbeaver
Leadership
Leadership

Which account are you using to SCP to the other ESX server? Root or non root account?

Steve Beaver

VMTN Forum Moderator

*Virtualization is a journey, not a project.*

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.**
0 Kudos
sefland
Contributor
Contributor

Same account as I used with winscp (non root)

0 Kudos
sbeaver
Leadership
Leadership

What command are you using?

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.**
0 Kudos
sefland
Contributor
Contributor

scp -r -v name-of-folder non-root@esx3server:/home/non-root/

0 Kudos
sbeaver
Leadership
Leadership

That should work can you try a specific file and see if that works for you

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.**
0 Kudos
dsanders
Expert
Expert

I think Nautilus may be on the right track.

From the console of the machine you are trying to SCP from run:

esxcfg-firewall -q | grep sshClient[/code]

If you do not see anything returned run:

esxcfg-firewall -e sshClient[/code]

I would first try to SSH to ensure you can do that. If you can SSH then try SCP again.

sefland
Contributor
Contributor

tried that and same problem. "Connection refused"

0 Kudos
Nautilus
Enthusiast
Enthusiast

do you started the firewall service ?

service firewall restart

i think the berst way is to stop on both Hosts the Firewall with

service firewall stop and test it again

Kind regards Nautilus ________________________________________________________________________________________________________________________________________________ If you found this or any other post helpful please consider the use of the Helpfull/Correct buttons to award points
0 Kudos
sefland
Contributor
Contributor

Thank you dsanders you pointed me in the rigth direction. Problem solved.

0 Kudos