CSC495-2014 / TeamworkEnglewoodGit

GNU General Public License v2.0
5 stars 15 forks source link

SSH Key Generation #81

Closed ZAM- closed 10 years ago

ZAM- commented 10 years ago

@wwforg earlier you asked if you would be interfacing with the File System at all, and my answer was no. I was talking with @apotheos about when the initial SSH key generation will be done, and we decided key pair will be generated at the first time a user logs in.

This means you need to instantiate a FileSystem object and call sshKeyGen() only for the first time the user logs in. sshKeyGen() will return the text form of the public key.

wwforg commented 10 years ago

Looking at the FileSystem object class, it looks like to create a FileSystem object I need the $userName and the $projectName. I have the username, but what would I use for project in this case, as they have not opened one yet?

mikeholler commented 10 years ago

Will brings up a good point here. @ZAM- can you make it a public static method instead? This method would be called like FileSystem::sshKeyGen($user). On Feb 27, 2014 5:30 PM, "William Forg" notifications@github.com wrote:

Looking at the FileSystem object class, it looks like to create a FileSystem object I need the $userName and the $projectName. I have the username, but what would I use for project in this case, as they have not opened one yet?

Reply to this email directly or view it on GitHubhttps://github.com/CSC495-2014/TeamworkEnglewoodGit/issues/81#issuecomment-36305178 .

ZAM- commented 10 years ago

That is a good idea Mike. I will implement that instead.

ZAM- commented 10 years ago

Since now I'm saving the private key in the user's directory, I need to create the user's directory before I save the id_rsa.pub file. I was going to call the mkdir() function we have in the FileSystem class inside the sshKeyGen($user) function before I go ahead and create and save the private key. Does that sound like a plan @apotheos ?

mikeholler commented 10 years ago

Yep, sounds good! On Feb 27, 2014 9:57 PM, "Zachary Mance" notifications@github.com wrote:

Since now I'm saving the private key in the user's directory, I need to create the user's directory before I save the id_rsa.pub file. I was going to call the mkdir() function we have in the FileSystem class inside the sshKeyGen($user) function before I go ahead and create and save the private key. Does that sound like a plan @apotheos https://github.com/apotheos ?

Reply to this email directly or view it on GitHubhttps://github.com/CSC495-2014/TeamworkEnglewoodGit/issues/81#issuecomment-36319923 .