I want to acces a remote server via ssh which has set the location for authorized keys set as /path/to/ssh/authorized_keys.%u
.
Now I am wondering how I can motivate ssh-copy-id
to create an authorized_keys
file at that location following that naming convention.
I tried ssh-copy-id -i /path/to/id_rsa.pub username@[ip-addresse] -o /path/to/ssh/authorized_key.username
but that gives me an error:
ERROR: command-line: line 0: Bad configuration option: /path/to/ssh/authorized_keys.username
writing this I wonder whether scp alernatively might provide a solution (couln't say how exactly though).
Can anybody help with this?