Displaying 1 result from an estimated 1 matches for "aaaamyrsakey".
2017 Sep 01
3
sftp/scp only without real users
...se the solution which is provided here:
https://serverfault.com/a/88864/90324
In short there will be 10 lines in the authorized_keys file:
|~backup_user/.ssh/authorized_keys:
no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command=\
"scp -v -r -d -t ~/CONTENT" ssh-rsa AAAAMYRSAKEY... |
I could improve this by a python script and not use the hard coded "scp
-v ...".
I would like to support scp and sftp.
Is there a way to chroot, to ensure each virtual account can't break out
of his jail?
BTW: The idea with authorized_keys and "forced command" is...