Questions tagged [public-key]

283 questions
1
vote
4 answers

SSH Public Key Authentication Fails Mac OSX

I am trying to get a coworkers MacBook Air running on Public Key Authentication and even after generating a new SSH key I haven't been able to get it to run like I have mine. Double checked file permissions, added her to all of the proper groups on…
OpensaurusRex
  • 151
  • 3
  • 10
1
vote
2 answers

Public key authentication - SSH asks for passphrase after rebooting local machine?

I created a public/private key pair on a local machine using ssh-keygen. I entered a passphrase. I then used ssh-id-copy to put the public key on the remote machine. When I ssh into the remote machine I'm asked for my passphrase after each each…
user784637
  • 1,542
  • 7
  • 35
  • 52
1
vote
3 answers

Possible to enable ssh passwordless authentication via Windows Active Directory?

Is it possible to set up ssh and Active Directory (Win2008r2 flavour) such that domain-users can access *nix and ssh-servers-running-on-Windows-servers without needing to type their password? If so, how? I've found some documentation that suggests…
1
vote
2 answers

How to use git pull without entering the passphrase

I'm trying to pull from a GitHub repository in an unattended way, but everytime I do it I get: Enter passphrase for key '/home/yc2/.ssh/id_rsa': And I have to enter it for it work. I managed to skip it by using eval `ssh-agent` ssh-add
pmerino
  • 461
  • 2
  • 5
  • 11
1
vote
2 answers

Get name of public key used to connect

I created a shell script that asks the connected user a question and after that it give him the prompt. The shell posts the question to a database for logging. The problem is that our developers are using a shared account, but each user has it's…
MihaiM
  • 728
  • 1
  • 9
  • 17
1
vote
2 answers

Need convincing PGP public key needs to be changed

So the situation is thus. We're working with another company and as part of some file distribution processing we have to encrypt some files before they are sent. The company in question sent us their public key which we have been using to encrypt…
djhworld
  • 113
  • 3
1
vote
2 answers

ssh with key login failed from Mac OSX to CentOS 5 remote server

I'm trying to setup passwordless login for from my mac to my remote server running CentOS with public key authentication for "user1". I used $ ssh-keygen -t rsa to setup a public key on my mac and then copied the mykey.pub file over to the CentOS…
lamp_scaler
  • 577
  • 1
  • 6
  • 18
1
vote
3 answers

Putty: ssh root login to server disabled, how i can setup passwordless access to root on server?

For added security, we've disabled root login to server via ssh. We have a special ssh account that users need to login as, and then su as root in they require root access. How can we setup passwordless logins using putty in this situation? I've…
gAMBOOKa
  • 999
  • 6
  • 19
  • 34
1
vote
3 answers

restricting access via ssh

We have a data processing workstation that's shared by a number of users. I would like to set up a script on that machine to process my data and then copy it it back to my personal machine afterwards. I recently learned about ssh public key…
eykanal
  • 335
  • 1
  • 2
  • 13
1
vote
1 answer

Private and public key negotiations over SSL protocol

I understand how public key encryption works and I understand how it works into SSL. Server sends encrypted(public) key so I can send it a message but only it knows the private key to decrypt it. Does the reverse happen? Does my browser send the…
Jacob
  • 9,204
  • 4
  • 45
  • 56
1
vote
1 answer

ssh authentication with public-private key pair

I'm wonder if is possible to authenticate the same user with different public-private keys pairs on the same remote host. For all production servers, the public-private key pair has been generated for the same user and then exported to the backup…
Rui Gonçalves
  • 195
  • 2
  • 8
1
vote
2 answers

Passwordless entry via public key authentication to a HP 2626 switch

I am trying to get the output of some 'show' commands in linux and print them in a file It's a HP 2626 switch 1. How can i setup Passwordless entry via public key authentication to the switch 2. How can i make a bash command to login to the server…
s.mihai
  • 1,511
  • 6
  • 24
  • 27
1
vote
3 answers

Simple SSH public/private key question

I am trying to learn this instead of just following guides so I can recommend proper actions when people do ask (and they do). Here is what I got down. First, generate both key with command such as this: ssh-keygen -b 2048 -t rsa -C comment -f…
James l.
  • 55
  • 3
1
vote
2 answers

This morning when sshing in, server asks for password (has never happened. normally use identity file)

I always log in to my server(Amazon EC2) by: ssh -i blahblah.pem root@server.com This morning the server asked for a password which I never set. I thought this could mean either my key(pem file) is corrupted somehow. Asked a friend to log in from…
user59595
1
vote
2 answers

SSH key does not work from a remote shell

I've come across an interesting problem and I literally don't know where to start looking to resolve it! The VCS machine in our office is running gitweb and my public key is on this machine fine. I can access the repositories from my machine without…
adamnfish
  • 111
  • 4