I'm about to connect to ssh with public key
I already got ssh public key on local rpi.ssh user1@host1
Permission denied (publickey).
I know I should copy public key into remote machine first, the problem is that password auth is forbidden.
I can connect with user2@host1 and my ssh key are already copied into this user2 ~/.ssh/authorized_keys file.
I can do it manually, but the question is, where should I copy my local public key if home folder of remote user2@host1 doesn't exist?
It worked with ssh-copy-id before when password authorisation was allowed.
How do I perform it now?
remote:$ cat /etc/*-release
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
Please advise.$ cat /etc/*-release
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
VERSION="14.04.5 LTS, Trusty Tahr"
PRETTY_NAME="Ubuntu 14.04.5 LTS"