New answers tagged scp
Default permissions for directory /opt/ is 755 and owned by root and group root, which makes it not possible for your user (pi) to write to this location. You'll have to ssh in to the server and change the permssions on /opt/ or you can scp over the 4.5GB file to your home location ($HOME) and then use mv with sudo.
check the permission on target machine for the user pi .
You could use CIFS for that, which under Debian is known as the cifs-utils package. That way you can mount a samba/cifs share onto your Linux machine and let a script to the rest. A mount would look like: /sbin/mount -t cifs -o user=<WindowsUser>,password=<WindowsPassword>,uid=<UIDtoOwnFilesOnLinux>,gid=<GIDtoOwnFilesOnLinux> ...
You should install Samba. I believe the command is sudo apt-get update sudo apt-get install samba Windows, unfortunately, uses Samba as the network sharing protocol. I've just literally uninstalled Debian from a machine that was using Samba, so I'm sure if you click on the Nautailus file jobby, and select browse network, it will show the share and you can ...
Sorry I cannot comment until I will reach 50 points. Thanks for patience. I did read the comments below a question and as a last resort to diagnose your problem, could you please install strace and do the following: strace -f -v -s1500 -o /root/sshd.log /usr/sbin/sshd on server side and AFTER CAREFUL EDIT BY HAND TO REMOVE SENSITIVE DATA SUCH AS PRIVATE ...
Top 50 recent answers are included