SSH login without passwd promotion

33 篇文章 1 订阅
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

------------

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

shenghuiping2001

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值