Results 1 to 4 of 4
I want to copy a file from my linux machine to remote windows machine. I use the following command:
scp somefile username@hostname:'d:\temp'
I get the following message:
ssh: connect to ...
- 04-20-2007 #1Just Joined!
- Join Date
- Oct 2006
- Posts
- 2
copying files from linux to windows using scp
I want to copy a file from my linux machine to remote windows machine. I use the following command:
scp somefile username@hostname:'d:\temp'
I get the following message:
ssh: connect to host ###### port 22: Connection refused
what is wrong?
- 04-20-2007 #2
Is ssh setup on Windows? If so, is your firewall on Windows, set to allow incoming ssh connections?
- 04-23-2007 #3Just Joined!
- Join Date
- Apr 2007
- Posts
- 6
Yes, as daark.child says you will firstly need to make sure that ssh is running on your windows box as a server/service. I use openssh/cygwin but there are a number of options, just google around there are loads of tutorials on the subject.
- 04-23-2007 #4Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
Alternatively what you could do is use Remote Desktop to connect to Windows, and loop back to run Putty/SCP from there. It's easier to setup as Putty and SCP are only two self contained exe's with no install.



