1. Set up the user Westos in the desktop host and set its password to Westoslinux
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/8F/F4/wKioL1jt_rGwx2q4AAEVBSxKRhI142.png-wh_500x0-wm_ 3-wmp_4-s_1763572214.png "title=" screenshot from 2017-04-12 16_55_29.png "alt=" Wkiol1jt_ Rgwx2q4aaevbsxkrhi142.png-wh_50 "/>
2. Configure the SSHD service requirements in desktop as follows:
*) Set SSHD service to allow only Westos users to be accessed using
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/8F/F5/wKiom1jt_tDjkR-MAAAw5snOF4M539.png-wh_500x0-wm_ 3-wmp_4-s_3266428745.png "style=" Float:none; "title=" screenshot from 2017-04-12 16_59_38.png "alt=" WKiom1jt_ Tdjkr-maaaw5snof4m539.png-wh_50 "/>
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/8F/F4/wKioL1jt_tHC15XzAAB1h9AcZxw339.png-wh_500x0-wm_ 3-wmp_4-s_579181122.png "style=" Float:none; "title=" screenshot from 2017-04-12 17_03_26.png "alt=" WKioL1jt_ Thc15xzaab1h9aczxw339.png-wh_50 "/>
*) Create a key authentication method for Westos users
650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/8F/F4/wKioL1jt_ueDPBLpAAGdzeZyQDg069.png-wh_500x0-wm_ 3-wmp_4-s_743523566.png "title=" screenshot from 2017-04-12 17_05_13.png "alt=" Wkiol1jt_uedpblpaagdzezyqdg069.png-wh _50 "/>650) this.width=650;" Src= "Https://s3.51cto.com/wyfs02/M01/8F/F4/wKioL1jt_wuQqa3EAAF0bAsllHc199.png-wh_ 500x0-wm_3-wmp_4-s_2409963339.png "title=" screenshot from 2017-04-12 17_07_09.png "alt=" WKioL1jt_ Wuqqa3eaaf0basllhc199.png-wh_50 "/>
*) Set Westos users to only allow the use of key authentication mode, shielding their system password authentication method
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/8F/F4/wKioL1jt_xyA1zl8AACmak8HSDQ368.png-wh_500x0-wm_ 3-wmp_4-s_1831557486.png "title=" screenshot from 2017-04-12 17_13_06.png "alt=" Wkiol1jt_ Xya1zl8aacmak8hsdq368.png-wh_50 "/>
Verification: 650) this.width=650; "Src=" Https://s2.51cto.com/wyfs02/M01/8F/F4/wKioL1jt_0DRcNt-AACiorb-pRE241.png-wh_ 500x0-wm_3-wmp_4-s_1451849388.png "title=" screenshot from 2017-04-12 17_14_54.png "alt=" WKioL1jt_ 0drcnt-aaciorb-pre241.png-wh_50 "/>
This article from "Aely Wood" blog, reproduced please contact the author!
Linux Unit9 Exercises