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
Post a Comment