|
|
Question : Problem: Location of authorized_keys file
|
|
I just set up my first SFTP server (SSHWindows or OpenSSH for Windows) on a client Windows 2000 Server. Here's where things stand: 1. Installation complete. 2. Password file is setup. 3. Home directory changed to a Windows share named SFTP. 4. Firewall setup for Port 22. 5. Successful client logon using Filezilla from my home network with a user / password combo. 6. EE expert DaveHowe provided me with a very useful explanation of the SFTP public key / private key concept and the authorized_keys file. Dave suggested that I place the public key in $HOME/.ssh/authorized_keys or in an alternate location if my server isn't a "true" SSH server. 7. I poked around a bit on the server. I ran ssh-keygen and produced authorized_keys and authorized_keys.pub files in the ...\OpenSSH\bin folder. Will the files work from this location? (I suspect they won't.) I'm unable to create $HOME/.ssh/authorized_keys because ".ssh" is an invalid name for a Windows folder. 8. I'm also struggling with Filezilla. I couldn't locate a way to reference a private key using the Site Manager. Is this functionality beyond Filezilla?
|
Answer : Problem: Location of authorized_keys file
|
|
On second thought - You can keep keys wherever You want (ssh -i path-to-key). And for authorized_keys, there server config option AuthorizedKeysFile D:\sftp\%u\.ssh
|
|
|