Unable to SCP using Windows
See original GitHub issueWhen trying to copy a file from cisco_ios device to my local windows machine using SCP, I am getting this error:
Traceback (most recent call last):
File "<stdin>", line 6, in <module>
File "C:\hbdata\network\lib\site-packages\netmiko\scp_functions.py", line 104, in file_transfer
verifyspace_and_transferfile(scp_transfer)
File "C:\hbdata\network\lib\site-packages\netmiko\scp_functions.py", line 18, in verifyspace_and_transferfile
if not scp_transfer.verify_space_available():
File "C:\hbdata\network\lib\site-packages\netmiko\scp_handler.py", line 160, in verify_space_available
space_avail = self.local_space_available()
File "C:\hbdata\network\lib\site-packages\netmiko\scp_handler.py", line 152, in local_space_available
destination_stats = os.statvfs(".")
AttributeError: module 'os' has no attribute 'statvfs'
I am using Python 3.7.3 on Windows 10
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Copying a local file from Windows to a remote server using scp
If your drive letter is C, you should be able to use. scp -r \desktop\myfolder\deployments\ user@host:/path/to/whereyouwant/thefile.
Read more >SCP is not working when running it on linux to Windows ...
We have OpenSsh installed and running on remote windows server. When I connect to it through Remote Desktop and run scp on command...
Read more >How to Fix 'No such File or Directory' Error in SCP? - Appuals
SCP stands for Secure Copy Protocol and it is based on the "Secure ... Such File or Directory” Error while trying to copy...
Read more >Unable to use SCP to do SCP from server to Host
In order to scp to a system, that system must be running sshd , and authentication must be set up. · 2 ·...
Read more >Can't copy files from mapped drive to local directory
This article solves the Location is not available error when you try to copy files from a mapped drive. Applies to: Windows Server...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I honestly didi not know what a PR was before you asked… I guess it would be a good way to start.
If you don’t mind a newbie contributing, I will do my best.
Going to close this and handle the rest in the PR – thank you!