Question: I have trouble to display the ''saved''/''liked'' posts of my users in django/admin. I would like to have a field in the Adminpage to show which user likes which posts. I made an Userprofile model where all extra information (besides the one on the given django admin user Profile) are stored. so here is my model View: 

```
class UserProfile(models.Model):
user = models.OneToOneField(User, null=True)
#likes = models.ManyToManyField(settings.AUTH_USER_MODEL, blank=True,default=1, related_name='likes')
likedPosts=models.ManyToManyField('self')
Field1 = models.CharField(max_length=50,default='Sunny')
Field2 = models.CharField(max_length=50,default='')

class Meta:
    ordering =['-user']

#def __unicode__(self):
 #   return self.user.username 

User.profile =property(lambda u: UserProfile.objects.get_or_create(user=u)[0])

```

right now in the liked post field I have only some usernames or "User object" 
I tried all kinds of combinations to get the information into the admin page but as you can see I did not make it. 
I tried to change the **unicode** and of course the liked post line. If you need more information please tell me so. I appreciate every kind of help.

Answer: 
Public and Private keys are lock key pairs. Your public key is not a key but a lock. You can give away that lock to anyone but never your private key. Your server has that lock. As stated in the comment below, you cannot open a lock with a lock. Using `ssh -i privatekey ip@aws` will work. Not `ssh -i publickey ip@aws`.
```
ssh -i ~/.ssh/id_rsa.pub ec2-user@<IP>

```

You should use private key here. Not the public one. SSH is wrongly [asking passphrase for quite everything](https://bugzilla.mindrot.org/show_bug.cgi?id=2522) in few recent version, but it should be fixed now.

> 
> 2) Why can't I ssh into the slave node using my public key id\_rsa.pub when it is added to the authorized\_keys file?
> 
> 
> 

The keys are probably set up wrong. Run the client and server in debug mode (`LogLevel DEBUG3` in `ssh_confing` and `sshd_config`) and have a look on the logs. If you will not be able to find out from that, update the question with the logs.

```
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug2: input_userauth_pk_ok: SHA1 fp df:e5:5b:18:67:05:8b:4d:06:6c:f9:99:c3:b5:2b:9f:4e:f2:52:8a
debug3: sign_and_send_pubkey
debug1: read PEM private key done: type RSA
debug3: Wrote 640 bytes for a total of 2213
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic

```

The logs above says that the key was accepted, but it was not enough to grant you access to that server. More information will be visible in the server log.