1

I have a user on my server that has /usr/bin/git-shell in /etc/passwd.

How do I upload files to the folder ~/www/ on the server, where I have owner rights?

If I try scp, I get this error:

$ scp index.html gituser@example.de:~/www/
fatal: unrecognized command 'scp -t ~/www/'
lost connection
rubo77
  • 19,527
  • 31
  • 134
  • 226
  • Try `git scp`. Note that `git-shell` only "permits execution only of server-side Git commands implementing the pull/push functionality, plus custom commands present in a subdirectory named git-shell-commands in the user’s home directory." – Nic3500 Mar 03 '21 at 00:46

0 Answers0