0

I wrote a shell script to do project releasing with Git which would be integrated n bamboo, in the shell script I first cd to the Git working copy and then do git pull origin master. But it prompts me for password: git@localhost's password:Any idea on how to solve this? I already tried using ssh-agent but for some reason ssh-add command does nothing.

  • Can you use a ssh key file instead of a password? This works for me. – Paul Aug 15 '13 at 03:12
  • you dont want it ask for password? – Abhishek Aug 15 '13 at 03:13
  • Could you please give more details about the ***exact commands*** you tried to use for `ssh-agent` and `ssh-add`? –  Aug 15 '13 at 03:16
  • I do want it to ask for password but since I am using bamboo I can not have the user enter password for every single run.I probable could use ssh key file but I'm not sure how to do that. Any good links to proceed in that direction? – Hans Wallice Aug 15 '13 at 14:02

2 Answers2

0

I suggest using ssh keys with ssh-agent. I successfully setup my ssh key and ssh-agent configurations using information on this page.

cforbish
  • 8,567
  • 3
  • 28
  • 32
0

you need to set your ssh keys.

https://help.github.com/articles/generating-ssh-keys

CodeWizard
  • 128,036
  • 21
  • 144
  • 167