0

I have Ubuntu 16.04 server and i need to create a user account on the server which connect via sftp and must be restricted to one specific folder inside the Home directory.

I will need to use the public private key authentication for user to authenticate with server instead of password.

thats what i have done.

  • Created the User account.
  • created .ssh directory with inside the home directory of user.

mkdir -p ~/.ssh

  • copy the public key of the remote client which will be connecting my server inside the .ssh directory.
  • created the another Directory inside the home folder.

    mkdir -p ~/allowed-for-sftp-connection

  • and from the remote host i can easily make the connection to ubuntu server but with this connection i can as well see the content of .ssh directory which i don't want.

can someone please help me out , how can i get this task done.

kunal
  • 442

0 Answers0