Configuring Git over SSH to login once

Had a similar problem with the GitHub because I was using HTTPS protocol. To check what protocol you’re using just run git config -l and look at the line starting with remote.origin.url. To switch your protocol git config remote.origin.url git@github.com:your_username/your_project.git

How can I remove an SSH key?

Note that there are at least two bug reports for ssh-add -d/-D not removing keys: “Debian Bug report #472477: ssh-add -D does not remove SSH key from gnome-keyring-daemon memory” “Ubuntu: ssh-add -D deleting all identities does not work. Also, why are all identities auto-added?” The exact issue is: ssh-add -d/-D deletes only manually added keys … Read more

Multiple GitHub Accounts & SSH Config

Andy Lester’s response is accurate but I found an important extra step I needed to make to get this to work. In trying to get two profiles set up, one for personal and one for work, my ~/.ssh/config was roughly as follows: Host me.github.com HostName github.com PreferredAuthentications publickey IdentityFile ~/.ssh/me_rsa Host work.github.com HostName github.com PreferredAuthentications … Read more

Repository access denied. access via a deployment key is read-only

First confusion on my side was about where exactly to set SSH Keys in BitBucket. I am new to BitBucket and I was setting a Deployment Key which gives read-access only. So make sure you are setting your rsa pub key in your BitBucket Account Settings. Click your BitBucket avatar and select Bitbucket Settings(Manage account). … Read more

AWS ssh access ‘Permission denied (publickey)’ issue [closed]

For Ubuntu instances: chmod 600 ec2-keypair.pem ssh -v -i ec2-keypair.pem ubuntu@ec2-174-129-185-190.compute-1.amazonaws.com For other instances, you might have to use ec2-user instead of ubuntu. Most EC2 Linux images I’ve used only have the root user created by default. See also: http://www.youtube.com/watch?v=WBro0TEAd7g

Push to GitHub without a password using ssh-key

If it is asking you for a username and password, your origin remote is pointing at the HTTPS URL rather than the SSH URL. Change it to ssh. For example, a GitHub project like Git will have an HTTPS URL: https://github.com/<Username>/<Project>.git And the SSH one: git@github.com:<Username>/<Project>.git You can do: git remote set-url origin git@github.com:<Username>/<Project>.git to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)