All Questions
Tagged with ssh-keys amazon-ec2
49
questions
1
vote
1
answer
949
views
Why do i need to restrict permissions on a PEM key?
I have a .pem key file that i use to ssh to my ec2 server. I've moved this key file to an encrypted external SSD disk. This has caused the owner of the pem key to be set to 'everyone'.
When i try to ...
0
votes
2
answers
5k
views
How to use ssh-copy-id on remote server?
I have an ec2 instance which I can connect using this command with the ssh_key.pem file I have.
ssh -i ssh_key.pem [email protected]
I am trying to use ssh-copy-id to add the public key I have on ...
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 ...
3
votes
2
answers
2k
views
Setting up sftp on Amazon Linux 2 with ssh keys, user segregation (sftp vs ssh), different ports, and user directory constraints
TDLR: I have a Catch 22 where, depending on permissions on the user's home directory, I can get the SSH authentication to work, or the user directory constraints, but not both.
BTW, I really want to ...
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
0
answers
238
views
Issues with seamless ssh connect via public key
I am trying to set up a seamless ssh connection from one server to another for the first time. While I think I managed to create a user and fitting rsa keys just fine, I can't actually connect via ssh,...
5
votes
1
answer
3k
views
How can I confirm SSH fingerprint when connecting to a new Amazon EC2 instance using PuTTY?
When I create a new EC2 instance running Ubuntu 18.04, using a new EC2-generated keypair, I convert the resulting .pem to .ppk using puttygen, then try to connect to the instance using PuTTY, and I am ...
1
vote
2
answers
3k
views
EC2: how to download the private key file for a user
I'm only working with terminal in order to create a user on a linux machine (ec2).
When creating a new user and then generating an ssh key for this user
ssh-keygen -f rsa I do this
I then get a rsa....
1
vote
1
answer
2k
views
EC2: Creating pem files for external users
I'm fairly new to this. I'm running a bunch of EC2 machines and when creating my AWS Account i got my own .pem file in order to connect to my machines for which I have full access rights, etc.
As I'm ...
0
votes
1
answer
498
views
How do I create a user and add an SSH key on an EC2 instance?
I can ssh into a remote EC2 instance with ec2-user and the keypair in the EC2 account with root(sudo) privileges.
How can I manually create another non-ec2-user user account, add an SSH key, and add ...
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 ...
0
votes
1
answer
1k
views
creating new SSH user in ubuntu ec2 instance using cloudformation template userdata
I want to create new ssh user that can access instance using cloudformation template userdata. i am using this json script
"sudo adduser jenkins-user --disabled-password\n",
"sudo su - jenkins-user\...
4
votes
1
answer
268
views
Possible to ssh into a server without using -i flag for key?
I have 3 EC2 instances and they all use the same private key. I'm setting up a hadoop cluster between these nodes and they require passwordless entry for this to work.
How can I use this private key ...
2
votes
0
answers
505
views
EC2 SSH Login Temporarily Hangs on "Entering Interactive Session"
I've been researching this for hours now, can't figure out why this is happening. Originally marked it as internet but checked my speeds (37 down, 10 up). I went from California to Oregon, and since ...
0
votes
1
answer
3k
views
Connection timed out when trying to SCP from one EC2 instance to another
I'm trying to SCP from one ec2 instance to another (via SSH client). Both server use the same keys.
My initial investigation into this led me to believe this would all be possible by using ...
-3
votes
2
answers
12k
views
How can you re-download your personal key (pk) .pem file? amazon [closed]
i only remember my key name ,how can re download my key pair in my computer,or how can i attach new keypair to my instance
3
votes
1
answer
2k
views
Deleted authorized_keys from EC2 but still have PPK file and I'm connected
I just deleted my full ec2-user/.ssh/ folder and I want to recover the keys so I can access my EC2 server without stopping and starting it.
I have on my computer a PPK file that has something like "...
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 ...
0
votes
2
answers
2k
views
SSH into EC2 with dynamic public IP address
Typically I set ssh aliases as follows:
ssh -i ~/path/key.pem [email protected]
But with EC2 instances, the public-host-name changes whenever an instance is stopped and ...
1
vote
2
answers
3k
views
Keypair with Shellinabox?
I've got an Amazon EC2 instance with a keypair, and I want to setup shellinabox so I can ssh from any web browser. However, shellinabox only seems to allow password logins and I wasn't able to find ...
25
votes
6
answers
21k
views
Windows Password won't decrypt on AWS EC2 even with the correct private key
I created a new Windows instance on AWS EC2, using a keypair I created by uploading my public key from my local machine.
The instance launched fine, but it won't decrypt the password. It reports:
I'...
111
votes
8
answers
29k
views
Why does my OpenSSH key fingerprint not match the AWS EC2 console keypair fingerprint?
When I import my OpenSSH public key into AWS EC2's keyring the fingerprint that AWS shows doesn't match what I see from:
ssh-keygen -l -f my_key
It is a different length and has different bytes.
...
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'? ...
2
votes
2
answers
2k
views
SSH login fails for EC2 instances created from image of working EC2
I have a functioning EC2 instance with several users, some of whom are chrooted to their home directories, some of whom are ftp-only and have no shell access, etc... ec2-user is the main admin account,...
1
vote
1
answer
745
views
SSH: Unable to login with key after disabling password authentication
I have an ubuntu server is on Amazon EC2. Earlier I used to login with the original pem key file generated at instance launch time.
ssh -i /path/to/key.pem [email protected]
I tried to ...
2
votes
2
answers
6k
views
How to ssh into ec2 instance running centos as a newly created user?
I am able to ssh into an ec2 instance as the root user using the private key .pem that was generated when I created the instance.
$ ssh -i Desktop/key.pem [email protected]
I ...
0
votes
3
answers
4k
views
Setting up Chef Node: Amazon EC2 instance is create but bootstrap fails
I am trying to get going with Chef and the freebie Chef server from Opscode.
I got my Chef workstation configured on a local VM running Ubuntu 12.04LTS. I downloaded the chef-repo from GitHub as ...
2
votes
1
answer
565
views
Default ubuntu user deleted, unable to access EC2 Instance via SSH
This is my first foray into using EC2, and I created my first instance using an Amazon AMI running Ubuntu 12.04. I created a keypair and downloaded the .pem file to my local machine. I was able to ...
25
votes
5
answers
28k
views
how to SSH to EC2 without explicitly using the pem key?
I have a windows as my main OS.
Using VMware player, I setup a Ubuntu server 12.4 as a guest machine.
The Ubuntu server have "ubuntu" user.
I created a new EC2 instance + setup pem key.
From the ...
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 ...
7
votes
2
answers
10k
views
Use CloudInit cloud-config file to add authorized_keys for multiple users
Is it possible to add ssh authorized keys for multiple users using a #cloud-config file with CloudInit?
I'm trying to initialize a new EC2 instance created from an Amazon Linux AMI using CloudInit. I'...
2
votes
2
answers
4k
views
How do I set up an AWS instance to allow others to SSH in?
I've recently set up a AWS EC2 instance (using an Ubuntu AMI) for a web project. I of course created a public/private pem key which I sued to log in a and set up the instance. Now I have a new ...
0
votes
2
answers
1k
views
EC2 SSH / SFTP issues
I have done a lot of searching on this issue, and can not find anything particularly relevant.
I have many instances spread across zones and grouped into various load balancers. One of the groups is ...
1
vote
2
answers
842
views
Ubuntu on EC2 - can't access after sudo su command
I'm relatively new to Linux, and whilst installing a number of different applications on my Ubuntu server instance, somebody helpfully suggested I use 'sudo su' to speed things up a little. All good. ...
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
...
1
vote
1
answer
1k
views
Cannot connect to my EC2 instance because of "Permission denied (publickey)"
In AWS console, I saw that my key pair was deleted. I created a new one with the same name. Then I tried to connect with ssh -v -i sohoKey.pem ec2-user@******.compute-1.amazonaws.com
Here's the ...
3
votes
2
answers
2k
views
SSH: Configure ssh_config to use specific key file for a specific server fingerprint
I have a key based login for a server. The IP and DNS of the server can change, because it is hosted on Amazon.
Is there a way to configure the ssh client config to use the specific key file for ...
2
votes
1
answer
1k
views
SSH How to ignore checking IdentityFile?
I have setup a config file located at "~/.ssh/config" which contains some IdentityFile lines to point to the key files that I use for some of my servers.
e.g. IdentityFile ~/Data/Keys/KeyFile.pem
...
0
votes
1
answer
862
views
Can not log in to Amazon EC2 instance (Beginner)
I am having difficulty logging onto my Amazon ec2 instance. I set it up,
downloaded the key. At first it complained because my permissions were setup
correctly. Then I executed: chmod 400 myKey....
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 ...
0
votes
2
answers
1k
views
RSA fingerprint changed after moving EBS and EIP to new instance
I'm running ubuntu on an EBS-backed EC2 instance.
In order to change the security group of my instance, I followed the instructions here for moving the ebs volumes to a new instance. Then I ...
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 ...
2
votes
2
answers
1k
views
Cannot SSH into Ubuntu 10.10 running on EC2 as new user
Please help me understand how I can solve my SSH problem:
I can SSH into my EC2 instance running Ubuntu 10.10 'Maverick Meerkat' no problem with:
$ ssh -i MyEC2Key.pem [email protected]...