�Ҿ�����Ҫ��SSH���Ӽҵ��Լ��ĵ����ϣ����������������֤�����ںܶలȫ�������������Կ���ֺ��鷳��������ѡ�������Google��˫����֤��˳�㻻��һ����22�˿ڡ�
����ķ���ͬ��������Ubuntu VPS���ҵļ���VPS�����������õġ�
����
Ubuntu 16.04.1 LTS 64bit
OpenSSH server
1����װSSH����
sudo apt update
sudo apt install openssh-server
2����װGoogle-Authenticator
sudo apt update
sudo apt install libpam-google-authenticator
3��������Կ
google-authenticator
������ȫ����y��
4�������ֻ�app
��Google-Authenticator����С�Authy�����ݱ���ɨ����һ�����ɵĶ�ά�뼴�ɡ�
�Ҹ���ʹ�õ���Authy��
5������
sudo vim /etc/pam.d/sshd
���ӣ�
auth required pam_google_authenticator.so
sudo vim /etc/ssh/sshd_config
�ģ�
ChallengeResponseAuthentication yes #��Ϊyes
port 22222 #SSHĬ��ʹ��22�˿ڣ��������ϲ���ij������Ļ���
6������SSH
sudo service ssh restart
ʹ��ʱ��Verification code�������ֻ�app���ɵ���֤�뼴�ɡ�
�������ø��µ�ַ��//m.ajphoenix.com/linux/24073.html