step1) 允許使用root與密碼登入
# vi /etc/ssh/sshd_config
------------------------------
......
PermitRootLogin yes
......
PasswordAuthentication yes
......
------------------------------


step2) 開啟SSH可以使用root遠端登入
# vi /etc/inetd.conf
------------拿掉註解------------------
......
ssh stream tcp nowait root /usr/sbin/sshd sshd -i -4
ssh stream tcp6 nowait root /usr/sbin/sshd sshd -i -6
......
----------------------------------------
 
step3) 開機後自動啟動SSH service
# vi /etc/rc.conf
------------------------------
......
sshd_enable="YES"
......
------------------------------  


step4)
# /etc/rc.d/sshd restart

arrow
arrow
    全站熱搜

    dreamtails 發表在 痞客邦 留言(0) 人氣()