linux - Centos - Root access with key, force to ask password too -


i have centos server in aws amazon. gave me key, since in computer, make server ask password too.

how can it?

openssh centos uses doesn't support requiring both key , password far know. can password protect key stored on local computer.

easiest way generate new key using ssh-keygen , install .ssh/authorized_keys file on server. ssh-keygen ask set passphrase.

you can encrypt using openssl, depends on key format need more info that.

disclaimer: i'm not familiar aws don't know key have came from.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -