SCP error 'unable to open'












4














So, I set up a SSH server (freeSSH, win7) and can connect to it just fine with PuTTY.
I then tried to use pscp to transfer a file (foobar.txt, from client to server).
I cd-ed to the dir pscp.exe was in, then did pscp.exe foobar.txt user@IP:C:Users... and got the response user@IP's password:.



At this I promptly typed in the password, to be met with pscp: unable to open C:Users...: permission denied.
The error for getting the password wrong is different, more specifically; Access denied.



(IP is the remote IP, and C:Users... is the remote filepath)










share|improve this question






















  • Do you happen to have any spaces in your filepath? pscp seems to hate spaces
    – Dmitry Grigoryev
    Jan 9 '17 at 16:50
















4














So, I set up a SSH server (freeSSH, win7) and can connect to it just fine with PuTTY.
I then tried to use pscp to transfer a file (foobar.txt, from client to server).
I cd-ed to the dir pscp.exe was in, then did pscp.exe foobar.txt user@IP:C:Users... and got the response user@IP's password:.



At this I promptly typed in the password, to be met with pscp: unable to open C:Users...: permission denied.
The error for getting the password wrong is different, more specifically; Access denied.



(IP is the remote IP, and C:Users... is the remote filepath)










share|improve this question






















  • Do you happen to have any spaces in your filepath? pscp seems to hate spaces
    – Dmitry Grigoryev
    Jan 9 '17 at 16:50














4












4








4







So, I set up a SSH server (freeSSH, win7) and can connect to it just fine with PuTTY.
I then tried to use pscp to transfer a file (foobar.txt, from client to server).
I cd-ed to the dir pscp.exe was in, then did pscp.exe foobar.txt user@IP:C:Users... and got the response user@IP's password:.



At this I promptly typed in the password, to be met with pscp: unable to open C:Users...: permission denied.
The error for getting the password wrong is different, more specifically; Access denied.



(IP is the remote IP, and C:Users... is the remote filepath)










share|improve this question













So, I set up a SSH server (freeSSH, win7) and can connect to it just fine with PuTTY.
I then tried to use pscp to transfer a file (foobar.txt, from client to server).
I cd-ed to the dir pscp.exe was in, then did pscp.exe foobar.txt user@IP:C:Users... and got the response user@IP's password:.



At this I promptly typed in the password, to be met with pscp: unable to open C:Users...: permission denied.
The error for getting the password wrong is different, more specifically; Access denied.



(IP is the remote IP, and C:Users... is the remote filepath)







windows-7 networking ssh putty scp






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 19 '14 at 1:01









Charles Noon

51210




51210












  • Do you happen to have any spaces in your filepath? pscp seems to hate spaces
    – Dmitry Grigoryev
    Jan 9 '17 at 16:50


















  • Do you happen to have any spaces in your filepath? pscp seems to hate spaces
    – Dmitry Grigoryev
    Jan 9 '17 at 16:50
















Do you happen to have any spaces in your filepath? pscp seems to hate spaces
– Dmitry Grigoryev
Jan 9 '17 at 16:50




Do you happen to have any spaces in your filepath? pscp seems to hate spaces
– Dmitry Grigoryev
Jan 9 '17 at 16:50










1 Answer
1






active

oldest

votes


















0














It may be the case that the directory you're trying to copy to does not have sufficient permissions for user to write to.




  • Is the directory you are copying to under user's home directory on the destination system?

  • Does the destination directory actually exist?

  • What are the permissions of foobar.txt? (user may not be able to access the source file so cannot copy it to destination)


To check file permissions on a Windows system:




  • Right click on the file/folder you want to check

  • Select Properties from the menu

  • Select the Security tab


You should then be able to see the user & group who own the file along with permissions for Everyone.



Note: I don't have enough reputation to comment but hope that these questions will help narrow down the cause.






share|improve this answer





















  • This is really a comment and not an answer to the original question. You can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. Please read Why do I need 50 reputation to comment? What can I do instead?
    – DavidPostill
    Jan 5 '17 at 20:18










  • Apologies! I wanted to try and help but didn't have high enough rep... Getting close now though! Happy for this to be removed if it's an issue.
    – stuts
    Jan 5 '17 at 21:39











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f799764%2fscp-error-unable-to-open%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














It may be the case that the directory you're trying to copy to does not have sufficient permissions for user to write to.




  • Is the directory you are copying to under user's home directory on the destination system?

  • Does the destination directory actually exist?

  • What are the permissions of foobar.txt? (user may not be able to access the source file so cannot copy it to destination)


To check file permissions on a Windows system:




  • Right click on the file/folder you want to check

  • Select Properties from the menu

  • Select the Security tab


You should then be able to see the user & group who own the file along with permissions for Everyone.



Note: I don't have enough reputation to comment but hope that these questions will help narrow down the cause.






share|improve this answer





















  • This is really a comment and not an answer to the original question. You can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. Please read Why do I need 50 reputation to comment? What can I do instead?
    – DavidPostill
    Jan 5 '17 at 20:18










  • Apologies! I wanted to try and help but didn't have high enough rep... Getting close now though! Happy for this to be removed if it's an issue.
    – stuts
    Jan 5 '17 at 21:39
















0














It may be the case that the directory you're trying to copy to does not have sufficient permissions for user to write to.




  • Is the directory you are copying to under user's home directory on the destination system?

  • Does the destination directory actually exist?

  • What are the permissions of foobar.txt? (user may not be able to access the source file so cannot copy it to destination)


To check file permissions on a Windows system:




  • Right click on the file/folder you want to check

  • Select Properties from the menu

  • Select the Security tab


You should then be able to see the user & group who own the file along with permissions for Everyone.



Note: I don't have enough reputation to comment but hope that these questions will help narrow down the cause.






share|improve this answer





















  • This is really a comment and not an answer to the original question. You can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. Please read Why do I need 50 reputation to comment? What can I do instead?
    – DavidPostill
    Jan 5 '17 at 20:18










  • Apologies! I wanted to try and help but didn't have high enough rep... Getting close now though! Happy for this to be removed if it's an issue.
    – stuts
    Jan 5 '17 at 21:39














0












0








0






It may be the case that the directory you're trying to copy to does not have sufficient permissions for user to write to.




  • Is the directory you are copying to under user's home directory on the destination system?

  • Does the destination directory actually exist?

  • What are the permissions of foobar.txt? (user may not be able to access the source file so cannot copy it to destination)


To check file permissions on a Windows system:




  • Right click on the file/folder you want to check

  • Select Properties from the menu

  • Select the Security tab


You should then be able to see the user & group who own the file along with permissions for Everyone.



Note: I don't have enough reputation to comment but hope that these questions will help narrow down the cause.






share|improve this answer












It may be the case that the directory you're trying to copy to does not have sufficient permissions for user to write to.




  • Is the directory you are copying to under user's home directory on the destination system?

  • Does the destination directory actually exist?

  • What are the permissions of foobar.txt? (user may not be able to access the source file so cannot copy it to destination)


To check file permissions on a Windows system:




  • Right click on the file/folder you want to check

  • Select Properties from the menu

  • Select the Security tab


You should then be able to see the user & group who own the file along with permissions for Everyone.



Note: I don't have enough reputation to comment but hope that these questions will help narrow down the cause.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 4 '17 at 10:45









stuts

1367




1367












  • This is really a comment and not an answer to the original question. You can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. Please read Why do I need 50 reputation to comment? What can I do instead?
    – DavidPostill
    Jan 5 '17 at 20:18










  • Apologies! I wanted to try and help but didn't have high enough rep... Getting close now though! Happy for this to be removed if it's an issue.
    – stuts
    Jan 5 '17 at 21:39


















  • This is really a comment and not an answer to the original question. You can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. Please read Why do I need 50 reputation to comment? What can I do instead?
    – DavidPostill
    Jan 5 '17 at 20:18










  • Apologies! I wanted to try and help but didn't have high enough rep... Getting close now though! Happy for this to be removed if it's an issue.
    – stuts
    Jan 5 '17 at 21:39
















This is really a comment and not an answer to the original question. You can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. Please read Why do I need 50 reputation to comment? What can I do instead?
– DavidPostill
Jan 5 '17 at 20:18




This is really a comment and not an answer to the original question. You can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. Please read Why do I need 50 reputation to comment? What can I do instead?
– DavidPostill
Jan 5 '17 at 20:18












Apologies! I wanted to try and help but didn't have high enough rep... Getting close now though! Happy for this to be removed if it's an issue.
– stuts
Jan 5 '17 at 21:39




Apologies! I wanted to try and help but didn't have high enough rep... Getting close now though! Happy for this to be removed if it's an issue.
– stuts
Jan 5 '17 at 21:39


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f799764%2fscp-error-unable-to-open%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Paul Cézanne

UIScrollView CustomStickyHeader Resize height generates problems when scroll is too fast

Angular material date-picker (MatDatepicker) auto completes the date on focus out