Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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?

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Is ssh setup on Windows? If so, is your firewall on Windows, set to allow incoming ssh connections?

  3. #3
    Just 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.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •