All Questions
Tagged with ssh-keys amazon-web-services
38
questions
0
votes
0
answers
16
views
Custom Linux AMI: How does AWS know where to install account SSH .PEM files when an AMI is provisioned?
We are building a custom AMI from a template EC2 EBS instance snapshot (Oracle Linux 8). This page shows there are many different user names depending on the AMI you choose:
https://docs.aws.amazon....
0
votes
1
answer
1k
views
Can multiple keypairs added to an instance in aws?
Regarding to this question here "https://serverfault.com/questions/221760/multiple-public-keys-for-one-user" and many others on getting ssh access using multiple pub keys for one user, can I ...
0
votes
1
answer
106
views
I have created new .ppk file with new passphrase from .pem file. How do I disable the access using the old ppk with old passphrase?
I am using a Centos based EC2 instance and had shared the ppk file with a passphrase with the team. Now I want to secure it and hence generated ppk file with new passphrase using Puttygen. But I can ...
2
votes
0
answers
123
views
AWS SSH Login continues to fail even with new EC2 instance [Permission denied (PublicKey)]
I just started working with AWS to create a wordpress site on an EC2 instance (using the tutorial at https://www.youtube.com/watch?v=4WR7EFFLF04). Everything was working fine until I tried to add an ...
2
votes
0
answers
73
views
How to change the Amaon Linux test page on AWS Instance?
I'm pretty new to the AWS. I have created my AWS Instance and installed httpd service on it. Now, when I start httpd and open that webpage, I can see that it is running perfectly. I want to change ...
0
votes
1
answer
657
views
Is it possible to generate a new SSH Key pair for an existing instance?
Setup: Bitnami Wordpress Lightsail Stack
Is it possible to generate a new SSH key pair for an existing instance? What are the steps to generate a new SSH key pair for an existing instance (without ...
1
vote
0
answers
286
views
Ubuntu SSH EC2 Broken Pipe after adding Elastic IP to Instance
Working with AWS EC2, I had a working m5.large instance running Ubuntu 16 with a regular IP address. I added limited access sftp users by editing /etc/sshd/config to the machine, which worked fine. ...
5
votes
1
answer
7k
views
ssh-copy-id doesn't work with .pem files
I am trying to copy an SSH public key on several EC2 instances.
Reading the ssh-copy-id man page, when you pass the key file, the program adds .pub extension if it missing.
AWS keys are generated ...
0
votes
1
answer
3k
views
SSH connect to a server: "Permission denied (publickey)." [duplicate]
I'm trying to connect to a remote AWS (Ubuntu) server using SSH and keep getting this error msg:
Permission denied (publickey).
On my local machine, under ~/.ssh/config I have this set:
Host ...
1
vote
1
answer
3k
views
Cannot connect to my remote server via ssh
I'm trying to connect to a remote AWS (Ubuntu) server using SSH and keep getting this error msg:
Load key "/home/potatouser/.ssh/dashboard.pub": invalid format
Permission denied (publickey).
On my ...
1
vote
3
answers
4k
views
How to ssh between two ec2 instance with ssh keys?
I have two EC2 instances:
Serve 1, OS: Centos - 7.5
Serve 2, OS: Centos - 7.5
Default username: centos
Both are configured for passwordless login, so I have the ssh key with me.
I am able to ssh to ...
0
votes
1
answer
241
views
Ssh key management in AWS like gcp
Google Cloud really Nails the SSH Key Management thing out of the box and AWS leaves it all up to you.
In gcp your gcp login credentials are also used for SSH access. gcp automatically creates SSH ...
0
votes
0
answers
4k
views
EC2 ssh 'authenticity of host can not be established'
There are a lot of questions on ServerFault and StackOverflow about the problem of 'authenticity of host can not be established'. For instance:
https://stackoverflow.com/questions/2360842/ec2-ssh-...
0
votes
2
answers
2k
views
AWS EC2: Can't log into instance
A few days ago, I created a new key pair for a client's AWS EC2 instance. For some reason, I could no longer log in with the prior key pair I created. Immediately after creating a new SSH key pair, I ...
2
votes
1
answer
2k
views
Recovering or regenerating lost AWS EC2 Key Pairs
AWS rookie here. I created a few EC2 instances under my AWS account and reused the same Key Pair for all of them. I believe (IIRC) that I had generated the Key Pair from inside AWS, but that could be ...
1
vote
1
answer
963
views
How to get Terraform to see the identity when using KeeAgent?
I am creating servers on AWS using Terraform on a Windows machine and that is working great. When they are created I want to install docker on them. However, after creating them, the SSH connection ...
0
votes
3
answers
150
views
Gain access to an AWS instance SSH without details
The company who used to manage our site has recently ceased business. They have given me the login details for our AWS account but I have so far been unable to access the SSH/FTP and I can no longer ...
-2
votes
1
answer
450
views
set up root password aws instance
I need to set the password for root user when sudo su -, ubuntu user should login via ssh key only.
#ssh -i server.pem [email protected]
[email protected]:~$ sudo su - --> should prompt the ...
0
votes
1
answer
293
views
Cannot add Chef client from Chef workstation because of private key AWS
I'm trying to create a node from a ubuntu workstation using Chef on an Ubuntu 16.04 AWS Server
I can SSH between devices using
sudo ssh -i "/path/to/private/key.pem" ubuntu@ip_address
This works ...
0
votes
1
answer
344
views
How to eliminate 'Identity added' message in terminal generated from ssh entry in .bashrc file?
I set up a VPC on Amazon Web Services where I ssh into multiple Ubuntu AMI's from one bastion host AMI. I added:
ssh-add /home/myuser/.ssh/aws.pem
to my .bashrc file on my local machine (Ubuntu 16....
0
votes
1
answer
1k
views
How do i resolve permission denied (public key) on ec2 aws [duplicate]
I have tried everything and i have been on this for two days, no progress.
i can access the same server (hadoopmaster) but when i try to copy the key or ssh into the slave (hadoopslave-1) i get the ...
2
votes
1
answer
222
views
AWS EC2 Server Refused Connection - Unmounted replaced authorized_keys - still cannot connect
So we were working on configurations for a soon to be production server. After making some configuration changes, we rebooted the machine and we got the dreaded "server refused connection" message.
I ...
1
vote
2
answers
868
views
Is there any way to change the key pair on a windows ami in aws
The situation, I've inherited a windows infrastructure in AWS. The ami's were created with someone else's keypair who has now left the business. I have a requirement to remove those keys.
The way I ...
3
votes
2
answers
3k
views
AWS CloudFormation give EC2 instance SSH Keys to other servers
I'm creating an EC2 instance using CloudFormation. The first thing I want to do is checkout a git repository containing puppet manifests. To do this I need an SSH key.
What is the best way to get the ...
1
vote
3
answers
12k
views
PEM_read_PrivateKey failed
I'm trying to use ssh to log in to AWS from OSX Mavericks and having a hell of a time. I enter:
ssh -i ~/.ssh/filename.pem
[email protected] -v
And I get this, as well ...
1
vote
2
answers
843
views
To generate key for AWS server using ssh-keygen from .pem for PuTTY
AWS gave me a private key in the format of .pem. I am trying to use it with PuTTY but failed and I read I need to generate a key with PuTTYgen but PuTTYgen is only for Windows. So I am trying to use ...
-4
votes
1
answer
5k
views
Connecting AWS from Windows. Error: Using username "ec2-user". Server refused our key
I am connecting AWS EC2 using Putty from Windows 8, I followed all steps mentioned on this page of conversion of .pem to .ppk and have loaded .ppk in Putty.
Putty Configurations:
Host Address: ec2-...
2
votes
2
answers
5k
views
How to configure SSH host keys in cloudformation template?
I'm trying to configure an EC2 with known SSH host keys on boot using cloud-init in a cloudformation template. But now I can't SSH into the server. It's tricky to debug :-)
Here's the userdata part ...
1
vote
1
answer
231
views
Instance created from shared snapshot gives Server refused our key error
I have created an instance from a shared snapshot from other aws account,following steps were done by me,
1.Share snapshot from other account.
2.copy it to my account.
3.create a volume from it ...
5
votes
2
answers
2k
views
AWS connection error: Permission denied (publickey)
Sorry if this sounds redundant to you but trust me its not. I have tried almost majority of the links related to this problem but nothing is working for me so far. I even tried this article two. Below ...
0
votes
2
answers
378
views
Are the keys created and added when launching an EC2 instance added to ~/.ssh/authorized_keys for ec2-user?
Are the keypairs created and added when launching an EC2 instance added to ~/.ssh/authorized_keys for the ec2-user ? or is there another mechanism used? If so, would the key have a name like 'master'? ...
1
vote
1
answer
2k
views
SSH access to AWS working with default id_rsa.pub but not with key generated using ssh-keygen
Hi I've never posted a question here but, I'm trying to access an AWS instance without entering a password with the following and having some issues.
$ ssh -i ~/.ssh/id_rsa_aws.pub ubuntu@...
11
votes
2
answers
5k
views
Can I SSH into my Amazon EC2 server instance if I don't have .pem file from when instance was created?
I am working with some Amazon EC2 servers that are up and running, and I need to SSH into the servers. I don't have any keys that were generated when the servers were first set up (someone else did it ...
8
votes
3
answers
12k
views
How to use PEM keys from EC2
I understand the concept of "ssh keys" to login to a server without entering a password, however, I am not understanding how/what PEM key files are to log in to EC2 instances.
In the AWS console, I ...
1
vote
1
answer
1k
views
Problems accessing EC2 instance with SSH key pair
Just set up a new EC2 instance, downloaded the pem file and currently cannot get into the box. I'm using the command...
$ ssh -i .ssh/key.pem ubuntu@ec2-176-34-183-***.eu-west-1.compute.amazonaws.com
...
2
votes
2
answers
1k
views
Can't seem to SSH into AWS EC2 instance, ssh permission denied error
I've launched a new EC2 instance with AWS using Amazon 64 bit linux (amzn-ami-2011.09.1.x86_64-ebs (ami-20506254)) and I'm having trouble ssh-ing into it. I've generated a public/private ssh keypair ...
2
votes
2
answers
805
views
Unable to SSH into EC2 instance
I've read through the existing answers to this topic, but I still can't seem to connect. I've created an AWS key and saved to my ~/.ssh folder.
The command:
ssh -i ~/.ssh/jdrake.pem ec2-user@ec2-75-...
0
votes
1
answer
1k
views
Unable to login to Amazon EC2 compute server
I am unable to login to the EC2 server.
Here's the log of the connection-attempt:
$ ssh -v -i ec2-key-incoleg-x002.pem [email protected]
OpenSSH_5.6p1, OpenSSL 0.9.8p 16 ...