Webmin Auto Generated SSH Public and Private Keys

Hi, I have the default settings in webmin>Servers>SSH Server>User SSH Key Setup to generate the keys automatically as below but I can't find where the private key is generated for any user, to copy to their local machine. Please cna you tell me where they are?

Setup SSH key for new Unix users?: Yes Copy new identify.pub to authorized_keys?: Yes Use password as key passphrase?: No Key type: Auto

Thanks

Darren

Status: 
Closed (fixed)

Comments

The new private key will be in users' .ssh directory, named either identity, id_dsa or id_rsa depending on the key type selected.

Hi Jamie,

Sorry but I don't have a "Users" directory. Is that supposed to be in / ?

I meant the home directory of each mailbox user or domain owner.

What are you trying to use SSH for exactly?

Do you mean here: /home/"domain"/homes/"User"/Maildir ?

If this is what you mean then there isn't a .ssh folder there.

If I create a key manually through a terminal using ssh, then a .ssh folder is created at /home/"domain"/homes/"User"/ with the key.

I thought that with the setting in my first post the .ssh folder with a key should be created here automatically?

Im trying to set this up for a svn+ssh connection

Yes, that is the expected location. However, SSH keys will only get created if you enable the Virtualmin feature to update other Webmin modules upon user creation. This can be done at System Settings -> Virtualmin Configuration -> Actions upon server and user creation , with the "Notify other modules when updating server administrator Unix users?" and "Notify other modules when updating mailbox Unix users?" fields.

That said, svn+ssh should work with password-based authentication, so there isn't actually any need to setup an SSH key at all ..

That did the trick, thanks!

"That said, svn+ssh should work with password-based authentication, so there isn't actually any need to setup an SSH key at all .."

Yes with smartSVN I am able to use password authentication because it gives me the option. With Netbeans I have to use a tunnel command so I guess I'm getting the command wrong somehow or its not possible.

Ok, I can see how key-based authentication would be useful in that case then ..

Automatically closed -- issue fixed for 2 weeks with no activity.