Invalid access to TeamCity GitHub private key file

Does anyone know a tutorial on using TeamCity with github with ssh private keys. I tried to configure the git hub to connect, and I either received an authentication error or was denied access. I am running TeamCity on Windows 2003. I am running the build agent as a user account. I am running a web server under an administrator account. I created a key for the user account and the administrator account. Now I get the error message:

Connection error: com.jcraft.jsch.JSchException: java.io.FileNotFoundException: C: \ Documents and Settings \ Administrator.ssh (Access denied)

If someone has successfully installed this, please help. I am going to do this for 3 hours and I want it to be allowed.

Thank.

+5
source share
2 answers

The following VCS Root configuration works for me:

  • Cloning URL: git @ github.com: username / repository .git
  • Clone Repository: C: \ somepath
  • Username Style: UserId (jsmith)
  • Authentication Method: Private Key
  • Private Key: C: \ SSH \ myKeyFile.priv
  • Passphrase: Only if the key file is password protected
+6
source

if you still do not understand ...

this configuration is designed for me

Authentication Method: Default Private Key

Username: (space)

< - !

, , , :)

+1

All Articles