Answer the question
In order to leave comments, you need to log in
Ssh .pub files in different files on server?
Tell me how you can organize the storage of pub keys in separate files?
those. what would not dump all .pub keys in /home/user/.ssh/authorized_keys, but keep separate /home/user/.ssh/user1.pub /home/user/.ssh/user2.pub?
Answer the question
In order to leave comments, you need to log in
There is such a line in /etc/ssh/sshd_config AuthorizedKeysFile %h/.ssh/authorized_keys
In theory, you can try something like this: AuthorizedKeysFile %h/.ssh/%u.pub - but, according to your logic, it turns out that two users should have a common home (in the sense, it is clear that these are just two different keys, but they are in the same home, which means for one user).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question