I want someone from windows to log in into my server using SSH, so he can edit files and install things. Is there a step to step how to do it? I need to:Create his user account.Configure it, giving him access to a single folder and nothing else (how?)Generate a public key for him on Windows (how?)Add his public key to authorized_keys correctly.Tell him the command he needs to use to actually log in from Window's terminal.I pretty much only know how to create the account. How to accomplish the latter steps?
How to enable someone to SSH to my server from Windows?
command line;ssh;users;configuration
(2) You may configure sshd to chroot() for this user. See man 5 sshd_config, search for ChrootDirectory and ForceCommand.(3) You must create a key pair. The public key is used on the server, the private key is used by the client. See ssh-keygen. You may need ssh-keygen -e ... for converting the key so that it is usable by putty but maybe putty can do this conversion itself meanwhile.(4) This is basically adding a line to a text file:cat public_key_file >>/path/to/authorized_keys(5) Your user will have to download the Windows SSH program putty and configure it to use the private key you supplied.