Skip to content

Commit

Permalink
add catch all for sftp-server/scp
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacht committed Oct 25, 2023
1 parent ce9e3f6 commit 360aa8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/guide_gitea.rst
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ If we're using the same ssh key for auth to uberspace and Gitea, we need to modi

.. code-block:: bash
command="if [ -t 0 ]; then bash; elif [[ ${SSH_ORIGINAL_COMMAND} =~ ^(scp|/usr/libexec/openssh/sftp-server|rsync|mysqldump).* ]]; then eval ${SSH_ORIGINAL_COMMAND}; else /home/isabell/gitea/gitea serv key-1 --config='/home/isabell/gitea/custom/conf/app.ini'; fi",no-port-forwarding,no-X11-forwarding,no-agent-forwarding ssh-ed25519 AAAAC...
command="if [ -t 0 ]; then bash; elif [[ ${SSH_ORIGINAL_COMMAND} =~ ^(scp|.*sftp-server|rsync|mysqldump).* ]]; then eval ${SSH_ORIGINAL_COMMAND}; else /home/isabell/gitea/gitea serv key-1 --config='/home/isabell/gitea/custom/conf/app.ini'; fi",no-port-forwarding,no-X11-forwarding,no-agent-forwarding ssh-ed25519 AAAAC...
.. warning::
* Be careful to remember the individual gitea key number ``key-X``
Expand Down

0 comments on commit 360aa8a

Please sign in to comment.