That's how I am trying to do it:
Step 1:
- sudo adduser Philipp --disabled-password
- sudo su - Philipp
- mkdir .ssh
- chmod 700 .ssh
- touch .ssh/authorized_keys
- chmod 600 .ssh/authorized_keys
- create keypair from AWS console
Step 2:
I am retrieving the public key for my keypair using:
- ssh-keygen -y
- copy & paste the public key
Step 3
- vim authorised_keys
- pasting the public key in 1 line
- in vim command :w
- in vim command :q
UPDATE
When I now try to the following in terminal:
ssh -i "keypair.pem" philipp@xx.xxx.xxx.xxx
I receive the following:
philipp@xx.xxx.xxx.xxx's password:
What am I doing wrong? With my main Linux User I am able to SSH the same way..