Quantcast
Channel: Permission denied (publickey). SSH from local Ubuntu to Amazon EC2 server - Server Fault
Browsing latest articles
Browse All 18 View Live

Answer by cellepo for Permission denied (publickey). SSH from local Ubuntu to...

If your .ssh dir has more than 1 key (ex: an id_rsa.pub, and an id_ed25519.pub), try ensuring you are executing ssh with the <correct_key_file>, by explicitly adding its path as an arg (and while...

View Article



Answer by Meir Gabay for Permission denied (publickey). SSH from local Ubuntu...

TL;DR - make sure you use the correct username - ubuntu/ec2-user/etc.I'm using a bastion-host (ec2) which is Amazon Linux OS, (ec2-user), and tried to from the bastion-host to a private-host (ec2)...

View Article

Answer by Jacob Tomlinson for Permission denied (publickey). SSH from local...

I've just experienced the same issue after inadvertently adding group write permissions to the users home directory.I discovered this was the cause by running tail -f /var/log/secure on the machine and...

View Article

Answer by Reese for Permission denied (publickey). SSH from local Ubuntu to...

This is a rare case, but if you have selinux enabled and you are using nfs for directory with the authorized_keys (e.g. shared home directories), you'll need to either disable selinux (not recommended...

View Article

Answer by Eric Hammond for Permission denied (publickey). SSH from local...

Perhaps not relevant to the current poster, but might help others who find this when searching for answers to similar situations. Instead of letting Amazon generate the ssh keypair, I recommend...

View Article


Answer by Patrick Collins for Permission denied (publickey). SSH from local...

Strangely, my problem turned out to be that the server had been restarted and it was issued a new DNS name. I was using the old DNS name. I know this sounds stupid but it took me a while to figure this...

View Article

Answer by uichin for Permission denied (publickey). SSH from local Ubuntu to...

If you're using CentOS 5, you may want to set StrictModes no in /etc/ssh/sshd_config. I'm sharing /home directory using NIS/NFS, and I set all the permissions correctly, but it always prompted me with...

View Article

Answer by chichilatte for Permission denied (publickey). SSH from local...

I had the same problem, and after trying tons of solutions which failed to work i opened the SSH port on my router's firewall (my router's firewall control panel is a mess, so it's hard to tell what's...

View Article


Answer by Ajit Verma for Permission denied (publickey). SSH from local Ubuntu...

I was having the same problem even though I was supposedly following all the stepsincluding$ ec2-authorize default -p 22However, I had started my instance in us-west-1 region. So the above command...

View Article


Answer by Naftuli Kay for Permission denied (publickey). SSH from local...

If you're trying to connect to a CyanogenMod phone running Dropbear, you should run the following lines to make sure everything is all permission'd right:chmod 600 /data/dropbear/.ssh/authorized_keysor...

View Article

Answer by Markus Hedlund for Permission denied (publickey). SSH from local...

Something that's easier to read than ssh -v (in my opinion of course), is tail -f /var/log/auth.log. That should be run on the server you are trying to connect to, while attempting to connect. It will...

View Article

Answer by Kjetil Joergensen for Permission denied (publickey). SSH from local...

As it hasn't been explicitly mentioned, sshd is by default very strict on permissions on for the authorized_keys files. So, if authorized_keys is writable for anybody other than the user or can be made...

View Article

Answer by Sudipta Chatterjee for Permission denied (publickey). SSH from...

Check your /etc/ssh/sshd_config file. There, find the line which says PasswordAuthentication noThat line needs to be modified to say yes instead of no. Also, restart the sshd server afterwards. sudo...

View Article


Answer by user60587 for Permission denied (publickey). SSH from local Ubuntu...

I got this message on a new instance based off the Ubuntu AMI. I was using the -i option to provide the PEM but it was still showing the "Permission denied (publickey)".My problem was that I wasn't...

View Article

Answer by pkmk for Permission denied (publickey). SSH from local Ubuntu to...

I received this error, because I forgot to add -l option. My local username was not the same as on the remote system. This does not answer your question, but I got here looking for an answer to my...

View Article


Answer by Cian for Permission denied (publickey). SSH from local Ubuntu to...

Greg's answer explains how to trouble shoot it better, however the actual issue is that you have an ssh key set on one side of the transaction (the client), which is attempting public key...

View Article

Answer by Greg Hewgill for Permission denied (publickey). SSH from local...

The first thing to do in this situation is to use the -v option to ssh, so you can see what types of authentication is tried and what the result is. Does that help enlighten the situation?In your...

View Article


Permission denied (publickey). SSH from local Ubuntu to Amazon EC2 server

I have an instance of an application running in the cloud on an Amazon EC2 instance, and I need to connect to it from my local Ubuntu. It works fine on one local ubuntu and also laptop. I got this...

View Article
Browsing latest articles
Browse All 18 View Live


Latest Images