Step # 1: Open sshd_config file
# vi /etc/ssh/sshd_config
Step # 2: Specify a user
Only allow user king to login by adding following line:
AllowUsers king
Step # 3: Restart sshd
Save and close the file. In the above example, user vivek has already been created on the system. Now just restart sshd:
# service sshd restart