public-key

Permission denied (publickey,gssapi-keyex,gssapi-with-mic) on openshift

谁都会走 提交于 2019-12-03 01:18:43
I am having issues with committing changes to my gear. I have tried to run rhc setup, I also deleted my .ssh folder and executed rhc setup again but that also didnt work. Not sure what changed but it worked couple of hours ago. >git push -u <GEAR_NAME> master Permission denied (publickey,gssapi-keyex,gssapi-with-mic). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. >git remote add devstage3 -f ssh://<GEAR_ID>@<GEAR_NAME>-<GEAR-DOMAIN>.rhcloud.com/~/git/<GEAR_DOMAIN>.git/ Also I have tried to start a different gear and

How to let TortoiseHg (Mercurial) on Windows use the Private Key file generated (by Puttygen)?

纵然是瞬间 提交于 2019-12-03 00:53:21
问题 I have used Puttygen to create a public and a private key, and then is ready to let TortoiseHg on Windows 7 do a clone by going to ssh://somebody@code.somewhere.com/somecode but there seems to be no where to add the private key to TortoiseHg? (or even just the mercurial command line) The file is already some where on hard disk as somefile.ppk Does someone know how to add it? 回答1: Either add the following to the [ui]-section of the mercurial.ini in your home directory (assuming your key is in

How do I add my own public key to Vagrant VM?

心不动则不痛 提交于 2019-12-03 00:14:41
问题 I got a problem with adding an ssh key to a Vagrant VM. Basically the setup that I have here works fine. Once the VMs are created, I can access them via vagrant ssh , the user "vagrant" exists and there's an ssh key for this user in the authorized_keys file. What I'd like to do now is: to be able to connect to those VMs via ssh or use scp . So I would only need to add my public key from id_rsa.pub to the authorized_keys - just like I'd do with ssh-copy-id . Is there a way to tell Vagrant

Github permission denied: ssh add agent has no identities

时间秒杀一切 提交于 2019-12-03 00:06:58
问题 This is my first time accessing github and I'm not experienced using console. I'm on a Macbook (using Bash). When I try to access github, I get this: git clone git@github.com:dhulihan/league-of-legends-data-scraper.git Cloning into 'league-of-legends-data-scraper'... Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I've tried following the instructions on Github page about Permission

JAVA AES 256 & Public Key Encryption [closed]

人走茶凉 提交于 2019-12-02 19:06:46
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . One of our customers requires us to encrypt a message return from our web service using AES 256 & Public Key Encryption Server Side (web service) is java based. Client side could be java or .Net. I'm not familiar

git push heroku master permission denied on VISTA

◇◆丶佛笑我妖孽 提交于 2019-12-02 18:34:48
(Using Vista)I'm trying to clone an app from my GitHub Repository and push it into Heroku. Okay, so I've tried to create an SSH key so many times with this: `ssh-keygen -t rsa` It seems to go perfectly. I have it on my C:/Users/***/.ssh folder. I now try to clone an app i forked in GitHub. When I try to clone it on the rails_apps directory, I get a message saying Permission Denied(public key). I found a solution on the net saying that I should run this first: `ssh-add` So I tried doing that. But it said that: Could not open a connection to your authentication agent. Then after some googling I

Read public key from file in keystore

♀尐吖头ヾ 提交于 2019-12-02 18:22:07
Hi I want to extract public key from KeyStore using Java code I am creating a keystore keytool -genkey -alias mykeystore -keyalg RSA -keystore mykeystore.jks -keysize 2048 And exporting the public into another file keytool -export -alias mykeystore -keystore mykeystore.jks -rfc -file publickey.cert How can I get the Public Key String from keystore or the publickey.cert file using the Java code? Thanks. UPDATE public static void main(String[] args) { try { FileInputStream is = new FileInputStream("/home/myuser/my-keystore/mykeystore.jks"); KeyStore keystore = KeyStore.getInstance(KeyStore

git clone fails for Heroku project

こ雲淡風輕ζ 提交于 2019-12-02 17:21:01
(on Mac) I'm trying to clone my project from my new computer. I first generated the ssh key pairs: heroku keys:add /Users/y/.ssh/heroku_rsa.pub heroku keys shows: ssh-rsa AAAAB3NzaC...B9DjpXg3fb y@server.local When I try to clone my project by git clone git@heroku.com:xyz.git Cloning into xyz... Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly This is strange. EDIT: If I don't rename my pub key file then it works. Somehow heroku doesn't like renaming my keys.. in other

ECC private key is longer than public key

僤鯓⒐⒋嵵緔 提交于 2019-12-02 16:00:41
问题 I have generated ECC public and private key using secp192r1 curve. I get 75 for public and 125 for private encoded key array length. Why private key is longer than public key? Why private key is not longer two times than public? Why private key is not 192 bits = 24 bytes because of secp192r1? Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()); ECNamedCurveParameterSpec ecSpec = ECNamedCurveTable.getParameterSpec("secp192r1"); KeyPairGenerator g = KeyPairGenerator

GitHub Error: Key already in use

て烟熏妆下的殇ゞ 提交于 2019-12-02 15:34:09
I have created two GitHub accounts. One for my work user and one for my personal self. I needed to do catch up on some work and as such cloned my work repo onto my personal PC. In order to do simple "git push origin master" commits without entering my username and password the whole time I simply want to add my public key from my home pc to the work repo. However Github gives this error: Error: Key already use After a bit of Googling I came across this link which states "To resolve the issue, remove the key from the other account or repository and add it to your account" Of course there is a