The tag has no wiki summary.

learn more… | top users | synonyms

99
votes
3answers
84k views

Tell git which private key to use

ssh has the -i option to tell it which private key file to use when authenticating: -i identity_file Selects a file from which the identity (private key) for RSA or DSA authentication is ...
63
votes
5answers
22k views

Is it ok to share private key file between multiple computers/services?

So we all know how to use public key/private keys using SSH, etc. But what's the best way to use/reuse them? Should I keep them in a safe place forever? I mean, I needed a pair of keys for accessing ...
23
votes
3answers
9k views

Are GPG and SSH keys interchangable?

I want to generate an RSA key in GPG and use it in SSH login. Is this even possible? If so, how?
10
votes
4answers
13k views

public key always asking for password and keyphrase

I am trying to SSH from a NAS to a webserver using a public key. NAS user is 'root' and webserver user is 'backup' I have all permissions set correctly and when I debug the SSH connection I get: ...
9
votes
1answer
9k views

Problem using git on Windows 7 with msysgit and .ssh keys

I'm using git on my Ubuntu machine with my existing ssh keys. Now I have to use Git on Windows 7, and need to use the same keypairs. I have set up msysgit and created an .ssh folder in ...
8
votes
1answer
1k views

In Keychain Access on OS X, Find matching public and private keys

I have a couple keys that seem to have been generated with the same names. I would like to know which public key match up with which private keys so I can rename/delete them. Is this something that is ...
7
votes
2answers
766 views

Isn't it dangerous to use SSH keys to login to an unknown/compromised server?

Say I provide someone with my public SSH key, the id_rsa.pub and he/she installs it on a server that is compromised, and I am asked to login. Does the login process involve sending my private key to ...
7
votes
3answers
325 views

Human-readable dump of gpg public key

Is there some tool to write out the actual content of a GnuPG public key in a way a human can unserstand? I mean not only ascii-armor which a human can read and type, but something which really breaks ...
6
votes
1answer
1k views

How can I add my picture to my public key using GnuPG?

I've created a key pair using GnuPG. I've read that in addition to multiple identities and email addresses, one can also embed a small image (most usually of the user) to help perhaps with memory ...
6
votes
1answer
1k views

How safe is it to make my SSH Public key, very public?

Is it a security risk to allow anyone to see your SSH public key? My public key(s) are on all the machines I login to regularly, and I've also given other sysadmins my .pub file so they allow me ...
6
votes
4answers
3k views

Secure remote editing of root-accessible files over SSH

As per security best practices one should not allow root login over SSH with password or keys. Instead, sudo should be used. However, if one wants to use SSH (SFTP) for remote editing of server ...
4
votes
4answers
936 views

SSH asks for password, even with public key installed [duplicate]

Possible Duplicate: Problem with shared ssh keys I have set up pub key authentication between two servers. Everything should work, but I am still asked for the password. Here's parts of my ...
4
votes
4answers
1k views

Can't import public key into OSX Keychain

I created a couple of self-signed S/MIME certificates (using OSX Keychain & OpenSSL) and then exported these into 3 files: Certificate (.cer) Private Key (.p12) Public Key (.pem) When ...
4
votes
3answers
7k views

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 command returns error

I'm trying to install Mongodb on Ubuntu 12 but when I run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 This returned the error below: keyserver.ubuntu.com host ...
4
votes
1answer
4k views

How to setup ssh, key-based (“password-less”) logins to a Linux/MacOSX sshd server via Windows, Linux, or MacOSX clients?

How does one setup ssh, key-based ("password-less") client logins to a Linux/MacOSX sshd server via Windows, Linux, or MacOSX clients? [Seeking both basic, conceptual understanding of key-based, ...
4
votes
2answers
1k views

SSH Public RSA key fails to authenticated after restore

I just put a new hard drive in my computer and restored my id_rsa key from a backup I had. However, when I try to connect to SSH, OSX is asking for a password. I didn't set a password when I created ...
4
votes
1answer
883 views

Public key repository - does this exist?

This is one of those "Surely this already exists, and if not, I damn well better build it!" moments. Here's my problem: I run a devteam, of around 10 individuals. Each of us has our own private ...
3
votes
3answers
11k views

SSH publickey autentication - server accepts key but auth does not succeed

I'm helping a friend who has some trouble connecting using public-key authentication, to a server maintainied by me. Public-key auth works fine for a couple of other users. Of course, my friend's ...
3
votes
3answers
9k views

SSH keeps requesting my password if I use a keyfile other than default

I have a keyfile named KEY, which has KEY and KEY.pub. I upload the pub to authorized_keys, and add the private with ssh-add /home/user/.ssh/KEY But when I try to connect with ssh user@host.com, ...
3
votes
2answers
9k views

Authenticating and adding public key for apt

I was trying to get the official mongodb for Ubuntu, following the instructions at http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages After adding the deb ...
3
votes
2answers
124 views

How is encryption handled when different email clients send emails securely?

Whose public key is used to encrypt email from me@myemailservice.com to you@youremailservice.com? My email client can't have the public key of every person in the world I could possibly write an email ...
3
votes
1answer
2k views

How can I export public keys in PEM format with GnuPG?

I know that gpg --export -o pub.key -a "Username" exports a users' public key, but it doesn't seem to write a standard PEM format block. Is there any way to export keys from gpg in PEM format?
3
votes
3answers
3k views

ssh-copy-id and duplicates in authorized_keys

I want to type password only once when connecting to SSH so I use ssh-copy-id and install my pubkey into authorized keys. But I don't keep track which servers already have my key and which does not, ...
3
votes
2answers
1k views

SSH: known host with dynamic address

I need to connect to a host with a dynamic IP address. Every time its IP changes, SSH prompts me the fingerprint validation thing: The authenticity of host '...' can't be established. RSA key ...
3
votes
1answer
932 views

Setting up sshd_config in cygwin for AES encrypted file transfer

I'm a bit newer to cygwin and sshd, and I want to configure sshd to allow encrypted SFTP file transferring. From what I understand, I need to find some sort of sshd_config example (which for some ...
2
votes
3answers
1k views

Does the use of Tor makes additional encryption unnecessary?

I know Tor uses encryption to guarantee anonymity, but I if wish to guarantee the privacy of my conversations should I use an additional layer of encryption? Can my home router or ISP intercept Tor ...
2
votes
5answers
16k views

SSH Not Accepting Public Key

When setting up ssh keys between two machines, the authentication only works one way. One server doesn't accept the public key of the other when trying to connect. Any ideas? Here's the verbose ...
2
votes
2answers
121 views

SSH auth by public key not working for one user on a system

I can't setup public key authentication for one particular user on a system. I checked user home and .ssh directories permissions, and it's good (drwx------. both, the same as for other users that can ...
2
votes
2answers
1k views

PGP private key password change and relationship to public key

I have been looking at PGP for a few days and noticed that if I change the password on the private key, parts of the private key change, but a large portion of it remains the same. The public key does ...
2
votes
0answers
75 views

Strange behavior on SSH public key login

I'm really stuck here. I've been trying to ssh into my ec2 server from local with a public key but it is not working. -> I get permission Denied (public key). The set up is as follows: Local: ...
1
vote
1answer
91 views

Blocked out of server because I don't have access to usual ssh public key, any solution?

I momentarily don't have access to my usual computer and would like to work on my personal dev server (Raspberry Pi) as usual using ssh. My problem is I secured it so you can only log in it with my ...
1
vote
1answer
2k views

How does gpg handle multiple keys in a keypair?

As I understand it, keypairs used with gpg generally have more than one associated key: one for signing and one for encryption. How are these multiple keys managed when using gpg (to push to a ...
1
vote
1answer
31 views

How do I get the 16-byte representation of my GitHub public key from my .pub file?

In my GitHub settings, it lists my public keys as 16-byte hexadecimal: 01:23:45:67:89:AB:CD:EF:01:23:45:67:89:AB:CD:EF Sadly, GitHub for Windows is buggy and keeps making me new ...
1
vote
2answers
247 views

Copying files over ssh without password

My supervisor has given me remote access to his computer by logging in through ssh on my local computer. Although I am connected (and can view any files I wish through vi, emacs), how can I copy ...
1
vote
2answers
339 views

ssh can't use key, but password works

I have an Ubuntu server running for my SCM, and am doing my development on a windows computer. This setup has worked for a long time with out any problems. But now I get a strange problem. The ...
1
vote
2answers
5k views

What is the difference between the .pem and .pub and non suffixed ssh credentials files?

Running "ssh-keygen -t dsa" generates two files, a private and public key. Its simple enough to comprehend that the private key is used to identify yourself to the outside world, which only sees your ...
1
vote
1answer
26 views

No supported authentication methods available in FileZilla

I'm using FileZilla to connect to my SFTP server. But when I'm trying to connect, it gives me this error Error: Disconnected: No supported authentication methods available (server sent: publickey) ...
1
vote
1answer
31 views

How should GnuPG's `--desig-revoke` command be used?

How should the GnuPG command --desig-revoke be used, and in which cases should you use it? According to the manual: --desig-revoke name Generate a designated revocation certificate for a key. ...
1
vote
1answer
61 views

GnuPG / OpenGPG: Recovering public key from private key

I know that the public SSH key can be recovered from the private using ssh-keygen -y. How can a (deleted) public key be recovered from the private key in GPG (preferably in a way that is OpenGPG ...
1
vote
1answer
936 views

WinSCP does not recognise key file

I am trying to set up a batch file for an automated transaction, however my tests have so far failed. I have the public key of the server where the connection is made. It has been saved as a .pkk ...
1
vote
2answers
210 views

SSH and Public Keys

I have created keys for git following instructions on http://help.github.com/linux-set-up-git/ This works nice, but when I try to ssh to another host, it tries to use same public key. Also, ssh to ...
1
vote
1answer
6k views

Can SSH into remote server but can't SCP?

I can SSH into remote server just fine using private key authentication with prompt for passphrase. However I'm getting permission denied when I try to SCP a file using the same passphrase. Here's my ...
1
vote
3answers
3k views

SSH key authentication with another user

I'm confusing myself on some ssh key-based authentication. Let's say I have: Host A: user tom .ssh tom_private_key tom_public_key Host B: user shared .ssh shared_private_key ...
1
vote
0answers
191 views

SSH authentication fails when trying to access Bitbucket from Jenkins

I'm trying to currently set up a Jenkins CI-server in Azure that pulls the project from Bitbucket and runs the tests. CI-server is running Ubuntu 14.10. I got the server running, and I generated ...
1
vote
0answers
121 views

Open SSH - issue logging in without password - public key

I'm having an issue where I'm unable to login by SSH - I've followed other guides and made sure permissions were set correctly, and that the publickeys on my local machine and remote machine match as ...
1
vote
1answer
67 views

SSL failure fallback

I've successfully configured my Apache webserver to make use of public certificates as an authentication method, using following configuration: SSLVerifyClient require SSLVerifyDepth 1 ...
1
vote
1answer
84 views

Transfer files using authentication

I have the public key with me(the pub file), for using sftp with public key authentication mode. How do i use sftp command for testing transfer file from my machine to the sftp server. For username ...
1
vote
0answers
366 views

How can I export public key in PEM format with GnuPG?

I'm writing SW that uses opessl library for verifying DSA signatures. I have public keys from senders in gpg format. How can I convert those into .pem so that openssl can read them? I found this from ...
1
vote
1answer
531 views

Create Public Key from Private (ECDSA Encryption)

I tried Crypto but they said a different exchange would be more suitable. I'm interested in how bitcoin addresses are created so I read through the technical details here - ...
1
vote
0answers
268 views

Windows PowerShell doesn’t use my SSH keys

I have a Git repository hosted on Bitbucket. I can connect to this using Git Bash terminal, which uses my public key defined in my H: drive (network drive), but if I try the same from Windows ...