2016年8月4日 星期四

在 Fedora 將新使用者加入 sudo

新增一檔案至 /etc/sudoers.d,可取名為:
/etc/sudoers.d/superusers (多人)

/etc/sudoers.d/<account> (單一使用者)

※ 以上並非既定規則,只是個人習慣。

然後在檔案裡新增以下內容:

<account>   ALL=(ALL)       ALL


SSH 登入免檢查指紋

ssh-keygen -R <ssh.server.ip.address> ;\ 
 ssh -o UserKnownHostsFile=/dev/null \   
 -o StrictHostKeyChecking=no \           
 <account>@<ssh.server.ip.address>