How to do a SSH login connection without passwd:
1: From Server A to B test:
su - test_account
ssh-keygen -t rsa in server A
2: Transfer pub key to Server B
keep the pub key permission 600
3: create the authorized_keys in Server B
cat pub_A >> authorized_keys
set permission to 600
4: Ensure in Server A:
public key and private key permission is 600
5: ensure the Both Server A and B, /home/test_account/.ssh folder's permission is 700
6: if the sshd_config had the AllowUser / AllowGroup
please add the allowed user in the "AllowUser/AllowGroup".
Ensure the test_account in the AllowGroup list.
Using command : usermod -a -G Group_name User_name
7: the ssh configure do not need restart
8: test from Server A:
ssh test_account@B
1: From Server A to B test:
su - test_account
ssh-keygen -t rsa in server A
2: Transfer pub key to Server B
keep the pub key permission 600
3: create the authorized_keys in Server B
cat pub_A >> authorized_keys
set permission to 600
4: Ensure in Server A:
public key and private key permission is 600
5: ensure the Both Server A and B, /home/test_account/.ssh folder's permission is 700
6: if the sshd_config had the AllowUser / AllowGroup
please add the allowed user in the "AllowUser/AllowGroup".
Ensure the test_account in the AllowGroup list.
Using command : usermod -a -G Group_name User_name
7: the ssh configure do not need restart
8: test from Server A:
ssh test_account@B
------------
In the test process, need customer to input the passwd the verify if the user can login, if the account can login using the passwd, the login permission is allowed.