I have created a keypair for my ec2 instance. Downloaded it.
ssh-add /path/to/key.pem (which has correct permissions)
When I do ssh ubuntu@<ip> I get Permission denied (publickey) Any ideas?
I am trying to set up passwordless ssh on two fresh linux VM's from VM A to VM B but I'm having permissions issues. I installed openssh-server on both vm's and configured /etc/ssh/sshd_config as follows:
When I'm trying to connect via SSH. It was ok, but after some manipulations by me :-[
I've downloaded keypairs, copy to .ec2, chmod to 600,
ssh-keygen -y -f ~/.ec2/gsg-keypair > ~/.ec2/gsg-keypair.pub
I'm using MacOS. I think it's something wrong with permissions...
I did a yum update to my desktop machine as root this morning and now my
regular logon account sees this whenever I press the enter key:
etc/audisp/audispd.conf: Permission denied
etc/audisp/plugins.d/af_unix.conf: Permission denied
etc/audisp/plugins.d/syslog.conf: Permission denied
etc/audit/audit.rules: Permission denied
etc/audit/auditd.conf: Permission deniedetc/dhcp/dhclient.d/ntp.sh: Permis
I have a Linux AMI setup on EC2. The default user is ec2-user. I created a second user account on the instance. I copied the .ssh/authorized_keys file from ec2-user home directory to the new user's home directory. Set the privs on .ssh/ to 700 and on authorized_keys to 600. Executed 'chown' to set owner of the .ssh/ folder as the new user.