Questions tagged [public-key]

283 questions
0
votes
1 answer

SSH and GIT auth stopped working all of sudden

After nearly one year using my usual keypair (in my company for our servers), suddenly today it doesn't work anymore. I don't know why. If I do a ssh --vvv I get ssh myname@myserver.com -vvv OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar…
gotch4
  • 275
  • 1
  • 3
  • 8
0
votes
3 answers

SCP Asking for Password with RSA Key

I've followed a few tutorials on setting up RSA Public Key Authentication, but I cannot seem to get it to work. I can SSH into the remote machine without a password, but when I try and scp files, I still get prompted for a password even though it…
w3rthl3ss
  • 135
  • 2
  • 7
0
votes
1 answer

ssh login using public/private key exchange authorized_keys not working?

I am trying to login from one ubuntu box to another using public/private keys with ssh, but it is not working.. OMD[live]:~/.ssh$ ssh -l myuser -v -i /test/sites/live/.ssh/id.rsa.myuser xxx.xxx.xxx.xxx OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o…
user146882
0
votes
1 answer

ubuntu - public-key for authentication

I have a master and slave cluster. I am setting up cloudera manager. On the master I created a passwordless key using the following. ssh-keygen -f id_rsa -t rsa -N '' eval `ssh-agent` ssh-add ~/.ssh/id_rsa I then placed the key on all slaves. …
Tampa
  • 338
  • 2
  • 8
  • 17
0
votes
1 answer

Connection closed [preauth]

On a Ubuntu 12.04 server, I am getting the following pair of messages in auth.log several times a minute: Jan 17 22:04:25 binx sshd[14659]: Connection closed by 192.168.0.1 [preauth] Jan 17 22:04:25 binx sshd[14661]: Connection closed by 192.168.0.5…
cpast
  • 505
  • 4
  • 13
0
votes
1 answer

Connecting to a remote server using SSH from a Mac

I have generated a public key file (id_rsa.pub) and a private key file (id_rsa) and placed them in my ~/.ssh folder According to the server admin, he has already added "my key" to the server for accessing it. Could someone please clarify : when he…
YD8877
  • 325
  • 1
  • 5
  • 11
0
votes
1 answer

SSH "Key Passing" or Why can't I SSH to a server from a box I'm ssh'd in too

Situation: I have a Desktop (Debain Sid) that I prefer to develop on. I have a macbook pro, since we're developing for Mac, that I compile on (Uses Apple SDK's all driven by a scons build so xcode is installed but never used.) We have a Mercurial…
Andrew T
  • 113
  • 3
0
votes
1 answer

SSH Public Key Authentication not working with PuTTY

I have created a virtual machine and installed Redhat 6. I am having issues connecting using public key authentication. I can use PuTTY on my Windows host to connect to the redhat guest, where I am prompted for a password. I am trying to setup…
haydenc2
  • 25
  • 1
  • 2
  • 5
0
votes
2 answers

Google 2 factor authentication on Ec2?

I have set up google two factor authentication on my local machine. So when I do : ssh localhost I need to verify the code along with password. But when I try to connect to my Ec2 instance like so : ssh -i mykey.pem ubuntu@x.x.x.x.x It just asks…
batman
  • 321
  • 1
  • 5
  • 10
0
votes
1 answer

'POSSIBLE BREAK IN ATTEMPT' in /var/log/auth.log when you use private key in putty?

When when I ssh into my server from windows using putty without using public key authentication I get no indication of a "BREAK IN ATTEMPT" in /var/log/auth.log However when I use DSA keys and set the appropriate path for the private key in…
user784637
  • 1,542
  • 7
  • 35
  • 52
0
votes
2 answers

Permission denied when creating/copying ssh key pair

Possible Duplicate: SSH configuration, publickeys, Permission denied (publickey,password). error I am trying to set up a sshkey pair using with the aid of the tutorial here however when I get to the first line of step 2 (the scp command) I am…
AdamP
  • 1
  • 1
0
votes
1 answer

Is it possible to circumvent public key authentication restrictions using SSH daemon?

My web hosting plan does not support public key authentication, however advice given in Public key authentication unsupported by web host. Method to avoid entering password? question suggests it may be possible to achieve using an SSH Daemon? Is it…
unpossible
  • 218
  • 3
  • 9
0
votes
1 answer

ssh key requires passphrase after viewing it

I'm running a tinycore machine that I store my code on before pushing it to github. This is also the only machine that has port 22 forwarded at home so I have to do the push from this machine due to github using ssh as it's protocol for doing pushes…
0
votes
4 answers

ec2 instance is unable to connect after restart

I created an micro ec2 instance with free tier option. After using it a week, i realized that i need more memory. So, i thought of changing the instance type from micro to small(for which i have to pay per use). I stopped the instance, changed its…
Karthik Jayapal
  • 163
  • 2
  • 6
0
votes
2 answers

SSH Private Key Not Working in Some Directories

I have a strange issue where SSH won't properly connect with a private-key if the key file is in certain directories. I've setup the keys on a set of servers and the following command ssh -i /root/privatekey keyuser@host.com works fine and I login…
uesp
  • 3,414
  • 1
  • 18
  • 16