ssh如何使root可用金鑰登入? - Linux

Table of Contents

※ 引述《kmanchang (達叔)》之銘言:
: 小弟參考鳥哥資料好久,終於設好金鑰可以將root
: 不需密碼的情況下登入另一台server,
: 但小弟又希望不要將PermitRootLogin設成no
: 一但設成no,即使有金鑰也無法用root登入...
: 請問有其他解決方法嗎?....

PermitRootLogin yes
RSAAuthentication yes
PubkeyAuthentication yes
PasswordAuthentication yes

Match User root
PasswordAuthentication no

--

All Comments

Sierra Rose avatarSierra Rose2010-03-20
謝謝前輩指導...