R
R
Roman Basharin2016-10-09 17:49:44
linux
Roman Basharin, 2016-10-09 17:49:44

Git pull still asking for username/password (ssh configured by manual)?

Used this guide jeka.by/post/1051/setup-ssh-keys-for-bitbucket-github
ssh -t bitbucket.org
Gives an error: PTY allocation request failed on channel 0
Tried to change permissions for the .ssh directory. Nothing changes. All the same, when git ull asks for a username and password.
An example of a public key, maybe this is the case:
ssh-rsa AAAA ... gIt [email protected]
Does the owner of the folder in which we perform git pull have to be root or www-data is also suitable? Do I need to indicate the real IP address of the server after the @ symbol, or is what the "ssh-keygen -t rsa" command creates workable by default?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor Alenkov, 2016-10-09
@Hellek

in ~/.ssh/config
I would write like this:

Host bitbucket.org github.com
  IdentityFile ~/.ssh/git_rsa
  User git

And I usually check without the "t" parameter:
ssh bitbucket.org
If everything is fine, then they will say hello to you by your login in bitbucket.org

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question