We setup ssh keys between our new PPM Linux server and our Windows build server running Cygwin. Everything connects fine. However we get permissioned denied if we try to run a script or create a directory etc. I compared an ssh connection from another PPM server that does not use ssh keys and noticed 'env' variables are different. The one without ssh keys works fine, and USERDOMAIN and USERNAME match our non human id we use. The server with ssh keys the USERDOMAIN is the local server name and USERNAME is sshd_server (which doesnt have rights to our home folder). I've been searching for hours on this dumb issue and cant figure it out. Its something to do with sshd service and environment variables. Anyone know how to fix this? Do we need to add something to the .profile?