I am copying single file from desktop to remote server with
scp
/Users/u2/Documents/yu.csv remote_user@ip:/home/remmote_user/yu.csv
In terminal it just replies with: scp: Connection closed
I tried to debug it with:tail -f /var/log/auth.log
Resulting in:
Sep 15 13:45:42 fchannel sshd[3737565]: Accepted publickey for u2 from xxx.132.xxx.107 port 53781 ssh2: RSA SHA256:EcTyxxxxxxxxxxxxxxxxxxxxxSep 15 13:45:42 fchannel sshd[3737565]: pam_unix(sshd:session): session opened for user u2 by (uid=0)Sep 15 13:45:42 fchannel systemd-logind[989]: New session 8571 of user u2.Sep 15 13:45:43 fchannel sshd[3737651]: Received disconnect from xxx.132.xxx.107 port 53781:11: disconnected by userSep 15 13:45:43 fchannel sshd[3737651]: Disconnected from user u2 xxx.132.xxx.107 port 53781Sep 15 13:45:43 fchannel sshd[3737565]: pam_unix(sshd:session): session closed for user onenetSep 15 13:45:43 fchannel systemd-logind[989]: Session 8571 logged out. Waiting for processes to exit.Sep 15 13:45:43 fchannel systemd-logind[989]: Removed session 8571.
any help is appreciated.ssh login works fine.