ssh keys - Passwordless login to a specific directory by SSH -


i know how login without password remote host ssh. way can access folder remote host. there way give access specific folders ssh?

i used ssh-keygen generate public-private key pairs , added public key ~/.ssh/authorized_keys in remote server.

you want sftponly. little involved set up, have running 2 dozen sftp clients. performs chroot when user connects , prevents ssh access -- name.

https://www.allthingsdigital.nl/2013/05/12/setting-up-an-sftp-only-account-with-openssh/

note can't allow user have write access in dir log into, can bind mount other directories , give them r/w access them.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -